Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

President Donald Trump's appointment of his budget director as interim director of a consumer protection agency championed by Democrats is being challenged in federal court.

Leandra English, the official elevated to interim director of the Consumer Financial Protection Bureau by outgoing Director Richard Cordray, an Obama-era appointee, filed suit Sunday against Trump and his pick, White House Budget Director Mick Mulvaney.

English cites the Dodd-Frank Act, which created the bureau, saying that as deputy director, she became the acting director under the law when Cordray resigned.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

She also argues that the federal law that the White House says supports Trump's appointment of Mulvaney doesn't apply when another statute designates a successor. Her suit seeks a temporary restraining order to block Mulvaney from taking over the bureau.

Mulvaney has long criticized the bureau as an example of bureaucracy run amok.

In a statement, White House spokeswoman Sarah Huckabee Sanders attributed the suit to politics and referred to an apparent internal bureau memo, in which its top lawyer concluded that Trump could appoint Mulvaney.

The memo was reported Sunday in Politico.

"There should be no question that Director Mulvaney is the Acting Director," Sanders said. "It is unfortunate that Mr. Cordray decided to put his political ambition above the interests of consumers with this stunt."

The suit comes one day after the Justice Department issued a memo saying that because the bureau is under the authority of the executive branch, the president has the power to name its acting director.