The leadership standoff between President Trump and the Customer Monetary Protection Bureau, an independent government agency, is headed to court.

Leandra English, the bureau’s deputy director, filed a lawsuit on Sunday evening to block Mr. Trump’s selection of a temporary chief from taking handle of the agency on Monday morning.

Ms. English, an agency veteran, was appointed to the deputy director position on Friday by the consumer bureau’s outgoing director, Richard Cordray, who abruptly resigned that day. Below the terms of the law that designed the agency, Ms. English need to succeed him as its temporary leader, Mr. Cordray told the employees.

But Mr. Trump, citing a diverse federal law, moved hours later to set up his budget director, Mick Mulvaney, as the agency’s acting director. The bureau had been a “total disaster” and necessary new leadership to “bring it back to life,” Mr. Trump stated on Twitter.

The dueling appointments left it unclear who would be running the agency on Monday.

Ms. English is seeking to the United States District Court for the District of Columbia to resolve the dispute. The lawsuit she filed seeks a temporary injunction to halt Mr. Mulvaney’s appointment.

“The President’s try to appoint a still-serving White Property staffer to displace the acting head of an independent agency is contrary to the all round statutory design and independence of the bureau,” Ms. English wrote in her lawsuit.