WASHINGTON — President Trump scored a victory Tuesday when a federal judge refused to block the president’s choice to temporarily run the nation’s top consumer financial watchdog and, for the moment, ended a two-way battle for leadership of the agency.

Judge Timothy Kelly declined to stop the president from putting Mick Mulvaney in place as the acting director of the CFPB. In doing so, Kelly ruled against Leandra English, the CFPB’s deputy director, who had requested an emergency restraining order to stop Mulvaney from becoming the acting director.

Both Mulvaney and English claimed to be the rightful acting director, with each citing different federal laws. The leadership crisis developed over the weekend after the CFPB’s permanent director, Richard Cordray, resigned and appointed English as his successor. Shortly afterward, the White House announced that Mulvaney, currently budget director, would take over the CFPB on an interim basis.

The judge’s ruling Tuesday is not the final decision in the case. But in making his decision, the judge said that English had not shown a substantial likelihood that she eventually would succeed on the merits of her case. The judge’s decision is not immediately appealable.

Lawyers for English will have to make a choice about how to proceed. After the hearing, a lawyer for English, Deepak Gupta, said he hopes to be able to move the case along quickly.

“I’m going to have to explore the options with my client, so I don’t know what the next step is and I’m not going to say that right now,” he said, adding options include asking the judge for a final decision on the merits of the case.

Gupta said it is not in his client’s interest or the government’s interest to have a “cloud of impropriety and uncertainty hanging over the bureau for any longer than is necessary.”

The White House said it “applauds the court’s decision,” saying it provides “further support for the president’s rightful authority to designate Director Mulvaney as acting director of the CFPB.

Kelly was nominated by President Trump and was confirmed by the Senate in September.