A temporary restraining order to halt President Trump’s pick for acting director of the Consumer Financial Protection Bureau (CFBP), Mick Mulvaney, has been denied by a judge.

Judge Timothy Kelly ruled in favor of Trump in his effort to appoint White House budget director Mulvaney to lead the bureau, the nation’s top financial watchdog agency.

A lawsuit was filed Sunday night by Leandra English, the federal official appointed to lead the bureau by its outgoing director, against the president and Mulvaney.

The suit requested a declaratory judgment and a temporary restraining order to block Mulvaney from taking over the agency.

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.

This is a developing story. Check back for updates. The Associated Press contributed to this report.