President Donald Trump attends the opening ceremony of the Veterans Day Parade in Madison Square Park on November 11, 2019 in New York City.

A federal judge in Washington, D.C., on Monday dismissed President Donald Trump's lawsuit seeking to bar a House committee from using a New York state law to obtain his state tax returns, suggesting the president's legal action belonged in another courthouse.

The ruling by Judge Carl Nichols does not mean that Trump's state tax returns will be released to the House Ways and Means Committee anytime soon.

Neither that committee, nor the two other congressional committees that under certain circumstances can obtain a president's tax returns under the new state law, has actually invoked it to get Trump's state returns.

Nichols' ruling in Trump's own suit had failed to establish that a judge in Washington federal court had jurisdiction over a challenge to New York's law, known as the TRUST Act.

That act allows the chairs of the Ways and Means Committee, the Senate Finance Committee and the Joint Committee on Taxation, to get New York state returns of certain federal, state and local public officials, "for a specifed and legitimate legislative purpose."

Nichols' ruling said that Trump did not establish a conspiracy between the Ways and Means Committee and New York officials, which could have established that a Washington court had jurisdiction over the suit.

"Nowhere in his Amended Complaint does Mr. Trump allege the existence of a conspiracy; in fact, the word 'conspiracy' does not even appear in his pleadings," Nichols wrote.

But Nichols did note that Trump "may renew his claim" that New York state tax officials are barred from releasing his state tax returns in the event that they are sought by one of the congressional committees under the New York law.