Manhattan DA Cyrus Vance Jr. won a victory in court Monday in his battle to look at President Trump’s tax returns — but it was short-lived.

The day started with Manhattan federal Judge Victor Marrero throwing out a lawsuit by Trump to stop Vance from getting the president’s tax records from an accounting firm.

In his ruling, Marrero described Trump’s expectation of blanket immunity as “repugnant to the nation’s governmental structure and constitutional values.”

But lawyers for Trump filed an emergency appeal mere minutes later — and the US Court of Appeals for the Second Circuit on Monday granted Trump’s request for a temporary stay pending “expedited review” of the case.

Lawyers for both sides are now readying for a battle that could extend to the U.S. Supreme Court.

Vance is seeking financial records — including tax returns — dating to 2011 for Trump, his corporate entities and other individuals as part of a grand jury probe.

Lawyers for Vance have repeatedly expressed concern that the Trump administration will attempt to tie the case up in the courts in a bid to run out any applicable statutes of limitations.

Trump had argued he was protected by blanket immunity while in office — but Marrero rejected that.

“This Court cannot endorse such a categorical and limitless assertion of presidential immunity,” the judge wrote. “The Court cannot square a vision of presidential immunity that would place the President above the law with the text of the Constitution.”