A federal judge on Wednesday narrowed a subpoena issued by the House to former President Donald Trump’s accounting firm Mazars, finding that not all the requests for the financial documents could survive under a new test created by the U.S. Supreme Court.

U.S. District Judge Amit Mehta of the District of Columbia heard arguments over the House Oversight Committee subpoena for the records from Mazars for the second time in July, after the case went up to the Supreme Court. On Wednesday, he found that records sought over legislation tied to financial disclosures couldn’t be given to Congress, but that lawmakers can access documents related to Trump’s lease for a D.C. hotel as well as foreign payments Trump may have received in office through his businesses, a potential violation of the Constitution.