House Democrats are jubilant over two court victories last week in their ongoing battle to get President Trump’s tax returns and ­decades of his personal and business banking records.

But their glee won’t last long. The US Supreme Court is likely to overturn these federal district court rulings. Trump will prevail, along with taxpayer privacy and political fair play.

Justice Ruth Bader Ginsburg’s history as a defender of taxpayer privacy adds to the favorable odds that Trump will win at the high court. In 1986, as an appeals court judge, Ginsburg expressed her appreciation that “taxpayer confidentiality must be jealously guarded.” She stressed the ­importance of protecting “sensitive or otherwise personal information” in tax ­returns, saying privacy is “fundamental.”

The House of Representatives can legitimately demand information — even a president’s tax returns — if it is needed to formulate legislation. But House Democrats couldn’t care less about legislating. They are on a fishing expedition, looking for failed deals, tax write-offs or anything else they can use to smear Trump before the 2020 election.

The two judges who upheld the document demands, both President Obama appointees, said it isn’t the court’s job to take into account the Democrats’ “ulterior motives” or “political considerations.”

They are wrong. Intent matters in the law. At the height of the shameful McCarthy era, the Supreme Court smacked down the House Un-American Activities Committee for trying to expose an individual’s private affairs with no other purpose than to destroy him.

Yet now House Democrats are repeating those slimy tactics.

Rep. Richard Neal of Massachusetts, chairman of the House Ways and Means Committee, has concocted a phony legislative rationale for demanding Trump’s tax returns.

Neal claims his committee wants to make sure that the Internal Revenue Service is thoroughly auditing Trump, as it’s supposed to audit every president while in office.

Neal’s pretext is an obvious lie. Otherwise, he would demand only Trump’s tax returns as president, not six years’ worth.

Another House Democrat, Maxine Waters of California, who chairs the Financial Services Committee, makes no bones about her intentions.

“Impeach Trump” are the two words that issue from her mouth whenever she is at a podium or in front of a TV camera.

Her committee is demanding decades’ worth of banking records, including every single check and credit card swipe by Trump and his children for many years before he became president.

Zealous anti-Trump Democrat and Oversight Committee chair Rep. Elijah Cummings subpoenaed Trump’s accountants for tax records. No surprise there.

What is shocking is the gibberish that US District Judge Amit Mehta offered in upholding Cummings’ subpoenas. Mehta said if Congress can impeach the president, it must have “the power to investigate him for unlawful conduct.”

Mehta needs a refresher course. The Supreme Court has ruled repeatedly that Congress’ investigatory powers are limited to lawmaking, not law enforcement. Count on the justices to rule that way again.

House Democrats seem hell-bent on ignoring the Constitution. Crazed by Trump’s 2016 election, they are single-minded in their determination to thwart his presidency, instead of fulfilling their role, which is to legislate.

Their deluge of subpoenas and ongoing investigations is an attack on our constitutional system. And an insult to the public. We’ve got a country to run, but these fanatics would rather sabotage the president.

Albany Democrats are off their rockers, too. Last Wednesday, they passed a bill to hand over the state tax filings of Trump, a New York resident, to the congressional committees seeking them.

An early version of the legislation named only Trump — an obvious violation of the US Constitution’s Article I, Section 9, which prohibits any law intended to target one individual. So the Democrats tacked on a few other officeholders. Even so, this venomous law won’t survive a constitutional challenge.

The New York bill shows how low Albany Democrats will stoop to do the party’s dirty work. State Senate Minority Leader John Flanagan said the bill reflected the Democrats’ “utterly displaced priorities.” Add a lack of respect for taxpayer privacy and the Constitution — the same sick attitude ­afflicting Democrats in Washington.

Betsy McCaughey is a former lieutenant governor of New York.