Trump was suing to block the law, which would let the House obtain Trump's state income tax returns.
A federal judge in Washington has dismissed a lawsuit from Donald Trump against New York officials aimed at preventing the release of his tax returns.
The judge ruled that the U.S. District Court in Washington, D.C., does not have jurisdiction to hear the case.
Trump sued New York's attorney general, tax commissioner and the House and Ways Means Committee in July. The suit sought an injunction to block the application of a New York state law that could allow the Democratic-controlled House to obtain the returns.
New York officials had agreed to delay acting on a congressional request for Trump's tax returns until there was a ruling on jurisdiction. But Trump could file a similar lawsuit in another court.
Letitia James, New York's attorney general, hailed the judge's ruling.
"We have said all along that this lawsuit should be dismissed and we are pleased with the court’s conclusion," James said in a statement. "The TRUST Act is an important tool that will ensure accountability to millions of Americans who deserve to know the truth. We have never doubted that this law was legal, which is why we vigorously defended it from the start and will continue to do so."
Trump's lawyer Jay Sekulow says he's reviewing the ruling.