The U.S. Supreme Court ruled on Thursday that President Donald Trump cannot shield his financial records, including his tax returns, from the Manhattan District Attorney. But a separate subpoena brought by House Democrats was sent back to lower courts — likely buying the president enough time to ensure Americans don't have access to his closely-guarded tax records until after the election this November.

By a 7-2 vote, the Supreme Court sided with Manhattan District Attorney Cy Vance, who had subpoenaed last year for a range of personal and business records as part of an investigation into hush money payments that Trump allegedly paid to multiple women ahead of the 2016 presidential election.

In a statement, D.A. Vance called the decision a "tremendous victory for our nation’s system of justice and its founding principle that no one – not even a president – is above the law."

After prosecutors subpoenaed the president's federal and state returns in September, Trump filed suit, arguing that he was immune from criminal proceedings while in office. The president also claimed that the release of his financial documents would result in a stigma that undermined his leadership.

Seven members of the Supreme Court, including Trump-appointed Justices Brett Kavanaugh and Neil Gorsuch, rejected that argument on Thursday.

"Even if a tarnished reputation were a cognizable impairment, there is nothing inherently stigmatizing about a President performing 'the citizen's normal duty of...furnishing information relevant to a criminal investigation,'" Chief Justice John Roberts wrote in his majority opinion.

Due to disclosure rules around grand juries, the records, which are held by Trump's accounting firm, Mazars USA, will not be made public.

The court also ruled Thursday on a second subpoena brought by House Democrats, which aimed to unearth financial records related to the president, his businesses, and his family.

Some of those records, including Trump's tax returns, would have been made public almost immediately. By a 7-2 margin, the court sent that case to a lower court to further examine the separation of powers issue, making it unlikely that they'll be released prior to the November election.

The decisions, which mark both a check on executive power and a practical short-term victory for Trump, seemed to perplex and anger the president on Thursday.

"We have a totally corrupt previous Administration, including a President and Vice President who spied on my campaign, AND GOT CAIGHT [sic]...and nothing happens to them," he tweeted after the decision.

He continued: "Now the Supreme Court gives a delay ruling that they would never have given.......for another President. This is about PROSECUTORIAL MISCONDUCT."

Vance vowed that his inquiry to the president would continue.

"Our investigation, which was delayed for almost a year by this lawsuit, will resume, guided as always by the grand jury’s solemn obligation to follow the law and the facts, wherever they may lead," he said.