The U.S. Supreme Court, in one the most important legislative power challenges in decades, ruled Thursday that President Donald Trump’s accounting firm and banks are not required to turn over the president’s tax returns and other financial documents to congressional investigating committees.

In a separate opinion, the court said Trump must comply with a New York state grand jury subpoena investigating potential irregularities in his tax and business records. The court gave Trump a chance to make constitutional and other legal arguments against the subpoenas on remand to the trial court.