The law would compel lenders to violate the Equal Credit Opportunity Act, according to the Mortgage Bankers Association.