The ECOA is legislation passed by Congress to prevent discrimination in credit and financial transactions. Regulation B is the rule the FTC created to enforce the ECOA. The CFPB is now responsible for enforcing Regulation B.