Follow CBSMIAMI.COM: Facebook | Twitter

WASHINGTON, D.C. (CBSMiami) – A U.S. District Court judge in Washington has ruled in favor of the White House in the battle over who runs the Consumer Financial Protection Bureau.

READ MORE: Condo Reform Measure Introduced During Florida Special Session On Property Insurance

The CFPB was created by the Obama administration in the wake of the 2008 economic crisis to protect consumers from predatory banks, lenders, and other financial bodies that could defraud people.

The original director, Richard Cordray, resigned last week, but before he did, he appointed Leandra English to be the interim director.

President Trump, however, argued Cordray did not have the authority to select his own successor so Trump appointed White House Budget Director Mick Mulvaney.

English filed a lawsuit to block Mulvaney’s appointment but late Tuesday, the U.S. District Court judge ruled against her, allowing Mulvaney to take his post as interim director of the consumer watchdog group.

READ MORE: Broward Dive Rescue Teams Come Together To Recover, Investigate Sunken Vehicles From Deerfield Beach Lake

What does the Consumer Financial Protection Bureau do?

The bureau overhauled the mortgage practices that were a factor in the financial crisis. It wrote simpler mortgage rules aiming to help consumers navigate the mortgage process, from selecting a loan through paying it back, created mortgage-servicing rules geared toward helping protect homebuyers, and it put in place more protections for those who get behind in their mortgage payments.

Republicans, broadly speaking, have never been fans of the CFPB, which they see as too powerful, largely unaccountable, and perhaps unconstitutional.

An independent agency, the CFPB gets its funding from the Federal Reserve, not through Congressional appropriations.

MORE NEWS: Judge: Surfside Collapse Property Owners Bumped Up To $96M

Democrats argue that the agency has done a good job of protecting consumers and note that the agency has paid out some $12 billion in relief to defrauded consumers. They also say that Mulvaney, who once called the CFPB “a joke…in a sick, sad kind of way” is not the person who should be running it.