Donald Trump cannot sue New York State officials in a Washington courtroom in order to stop the release of his tax returns, a federal judge has decided.

The ruling marks a rejection of the presidents efforts to intervene before House Democrats can obtain the financial records under a new New York State law, and leaves open the possibility that the president might file a similar lawsuit in a different court.

"Mr Trump bears the burden of establishing personal jurisdiction, but his allegations do not establish that the District of Columbia's long-arm statute is satisfied here with respect to either Defendant," wrote judge Carl Nichols, who was an appointee of Mr Trump.

In his lawsuit, the president attempted to preemptively block the House Ways and Means Committee from requesting his tax returns, and to stop New York attorney general Letitia James from enforcing that law. In addition, the lawsuit sought to stop the New York department of Taxation from giving over the documents, which Democrats in the House committee have not yet officially asked for through the new New York law.

"Based on the current allegations, Mr Trump has not met his burden of establishing personal jurisdiction over either of the New York Defendants," wrote Mr Nichols. "The Court therefore need not reach the question of proper venue. Accordingly, the New York Defendants' Motion to Dismiss is granted, and Mr Trump's Amended Complaint is dismissed without prejudice to them."

Minneapolis protesters clash with police outside Trump rally Show all 12 1 /12 Minneapolis protesters clash with police outside Trump rally Minneapolis protesters clash with police outside Trump rally IMAGES INCLUDE EXPLICIT LANGUAGE: Counter protesters confront horse-mounted law enforcement after a rally by U.S. President Donald Trump in Minneapolis, Minnesota. Reuters Minneapolis protesters clash with police outside Trump rally Anti-Trump protesters hold signs outside the Target Center in Minneapolis, Minnesota, ahead of a "Keep America Great" rally AFP/Getty Minneapolis protesters clash with police outside Trump rally A counter protester holds a sign before a rally by U.S. President Donald Trump in Minneapolis Reuters Minneapolis protesters clash with police outside Trump rally The state is home to some of the President’s most prominent critics – including senator Amy Klobuchar and congresswoman Ilhan Omar AFP/Getty Minneapolis protesters clash with police outside Trump rally Both the president’s backers and his detractors were, for the most part, kept separate EPA Minneapolis protesters clash with police outside Trump rally On the fringes of the action the president’s supporters clashed with protestors AP Minneapolis protesters clash with police outside Trump rally A protester with a whistle attempts to interrupt U.S. President Donald Trump while he spoke Getty Minneapolis protesters clash with police outside Trump rally Minneapolis Police create a blockade to hold back protestors Getty Minneapolis protesters clash with police outside Trump rally On the arrival of the police protestors could be seen jeering and hurling projectiles at officers AP Minneapolis protesters clash with police outside Trump rally Officers deployed pepper spray during the protests AP Minneapolis protesters clash with police outside Trump rally Baby Trump balloons are carried by a counter protester before the rally Reuters Minneapolis protesters clash with police outside Trump rally Anti-Trump protesters hold signs outside the Target Center in Minneapolis, Minnesota AFP/Getty

Mr Nichols also wrote that the president had not sufficiently established a conspiracy between the House committee and those officials in New York, which would have strengthened Mr Trump's case to have the case heard in Washington through a legal theory known as "conspiracy jurisdiction."

"But 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," Mr Nichols wrote.

Mr Trump's personal lawyer, Jay Sekulow, said in a statement that his team is "reviewing the opinion. The case against the Ways and Means Committee proceeds in federal court."

Investigators in the US House have long sought Mr Trump's tax returns, amid concerns that he may have inappropriate financial obligations to foreign governments or banks.