WASHINGTON, DC - JUNE 30: U.S. President Donald Trump walks off  Marine One at the White House after spending the weekend at the G20 Summit and meeting Kim Jong Un, in the DMZ on June 30, 2019 in Washington, DC. Donald Trump met Sunday with Kim Jong Un in the Demilitarized Zone between North and South Korea and became the first U.S. president to step onto North Korean territory. (Photo by Tasos Katopodis/Getty Images)
Tasos Katopodis/Getty Images
WASHINGTON, DC - JUNE 30: U.S. President Donald Trump walks off Marine One at the White House after spending the weekend at the G20 Summit and meeting Kim Jong Un, in the DMZ on June 30, 2019 in Washington, DC. Donald Trump met Sunday with Kim Jong Un in the Demilitarized Zone between North and South Korea and became the first U.S. president to step onto North Korean territory. (Photo by Tasos Katopodis/Getty Images)
Now playing
02:24
Trump sues to stop release of his tax returns
Getty Images
Now playing
03:40
See top Trump DOJ official's two-word response to election probe request
US President Joe Biden gives a press conference after the NATO summit at the North Atlantic Treaty Organization (NATO) headquarters in Brussels, on June 14, 2021.
OLIVIER HOSLET/AFP/POOL/Getty Images
US President Joe Biden gives a press conference after the NATO summit at the North Atlantic Treaty Organization (NATO) headquarters in Brussels, on June 14, 2021.
Now playing
01:25
Biden calls on foreign leaders to protect against 'phony populism'
CNN
Now playing
01:39
Honig: Emails show Trump had his enablers
Senate TV
Now playing
05:54
McConnell dismisses Trump DOJ's secret seizure of data
POOL
Now playing
02:47
'Surprise is an understatement': Reporter on lawmaker's apology
WAVE
Now playing
01:52
McConnell vows to deny Biden SCOTUS pick if GOP wins back Senate
Now playing
02:31
Merrick Garland announces plan to combat domestic terrorism
arizona election audit murray ebof vpx_00001313.png
arizona election audit murray ebof vpx_00001313.png
Now playing
02:19
Ballot maker: We've never seen an audit conducted this way
CNN
Now playing
02:30
Rep. Stewart makes false claim about Rep. Marjorie Taylor Greene
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Bill Clark/CQ Roll Call/AP
UNITED STATES - JUNE 9: Attorney General Merrick Garland arrives for the Senate Appropriations Subcommittee on Commerce, Justice, Science, and Related Agencies hearing on the proposed budget for fiscal year 2022 for the Department of Justice on Wednesday, June 9, 2021. (Photo by Bill Clark/CQ Roll Call via AP Images)
Now playing
02:34
Merrick Garland releases statement regarding leak probes
Now playing
08:21
'Very offensive': Mom of US Marine jailed in Russia reacts to Putin's comment
Now playing
02:38
CNN's Barbara Starr: No idea why the DOJ snuck into my life
NYC Mayor's Office/CNN
Now playing
06:15
Keilar: NYC's mayor has zero you-know-whats to give
Fox News/CNN
Now playing
01:21
Texas lawmaker reacts to Lara Trump telling border citizens to 'arm up'
CNN
Now playing
03:45
Avlon: Now America's allies are breathing a bit easier
Washington CNN —  

A federal judge on Thursday issued an order blocking New York state from turning over President Donald Trump’s tax returns to congressional Democrats for now, should the House Ways and Means Committee request them through a newly passed New York law.

The limitation will be in place, Judge Carl Nichols wrote, while allowing New York to challenge whether Nichols’ courtroom in Washington is the proper place for this case, brought by Trump, to move forward, and in what form it could proceed.

In a court hearing on Wednesday ahead of the order, Nichols said that his intention was to ensure “Mr. Trump cannot suffer any harm” while arguments play out.

The order is based on a compromise proposal developed by New York that Trump’s attorneys told the judge on Wednesday that they could live with.

Nichols is a Trump nominee confirmed by the Senate earlier this year.

The House committee, which is a defendant in the lawsuit, objected strenuously to a different proposal from Trump that the committee be required to notify the court when making a request for the records. Blocking New York from producing the records was a way around that.

The Democratic-led Ways and Means panel escalated the fight for the President’s personal financial information last month by filing a separate lawsuit to enforce subpoenas and obtain Trump’s tax returns.

Andrew Amer, the attorney representing New York, told the judge on Wednesday that his clients believe the DC court does not have jurisdiction, and it would seek to have the case moved or dismissed.

The judge gave New York until next Friday to file its motion outlining why the case should not be heard in DC.

This story has been updated.