A federal judge has ruled in favor of President Trump in his effort to appoint the acting head of nation’s top financial watchdog agency, the Consumer Financial Protection Bureau.

In a ruling from the bench Tuesday afternoon, Judge Timothy Kelly — a Trump appointee — declined to stop on an emergency basis the president from putting in place Mick Mulvaney, currently the White House’s budget director.

In doing so, Kelly ruled against Leandra English, the CFPB’s deputy director.

English had requested an emergency restraining order to stop Mulvaney from becoming the acting director of the bureau.

The leadership of the bureau had been thrown into chaos over the weekend after its permanent director, Richard Cordray, resigned and appointed English as his successor.

Both Mulvaney and English claimed to be the rightful acting director, and both had showed up for work on Monday morning.

The White House hailed the ruling.

“The Administration applauds the court’s decision, which provides further support for the president’s rightful authority to designate Director Mulvaney as Acting Director of the CFPB,” spokesman Raj Shah said.

“It’s time for the Democrats to stop enabling this brazen political stunt by a rogue employee and allow Acting Director Mulvaney to continue the bureau’s smooth transition into an agency that truly serves to help consumers.”

With AP