The agency was created to protect consumers after the 2008 financial crisis and subprime mortgage-lending scandal.