A federal judge on Tuesday dismissed a lawsuit from a group of 17 House Democrats seeking documents related to President Trump Donald John TrumpSteele Dossier sub-source was subject of FBI counterintelligence probe Pelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Trump 'no longer angry' at Romney because of Supreme Court stance MORE's financial ties to his Washington, D.C., hotel.

The Democrats, all of whom serve on the House Oversight and Government Reform Committee, brought the case against the General Services Administration (GSA) in November in order to determine if Trump benefits financially from the hotel.

U.S. District Judge Amti Mehta wrote the Democrats do not have the legal standing to sue the GSA over this issue. He suggested they turn to other recourses, including congressional action, according to the Wall Street Journal.

ADVERTISEMENT

“The fact that a political remedy is hard to achieve does not automatically swing open the doors to the federal courts,” Mehta wrote, the Journal reported.

The Democrats did not immediately respond to the Journal's request for comment.

They sued in DC's U.S. District Court over the GSA's failure to comply with the obscure "seven-member statute," a 1928 law that mandates federal agencies provide documents requested by more than seven members of the House Oversight Committee, Politico reported in November.

Democrats had requested documents from the GSA about the hotel's profits and expenses, as well as the agency's communications with the White House. The GSA declined to produce the documents, according to the Journal.

“This lawsuit is not just about a hotel in Washington D.C.,” Rep. Elijah Cummings Elijah Eugene CummingsBlack GOP candidate accuses Behar of wearing black face in heated interview Overnight Health Care: US won't join global coronavirus vaccine initiative | Federal panel lays out initial priorities for COVID-19 vaccine distribution | NIH panel: 'Insufficient data' to show treatment touted by Trump works House Oversight Democrats to subpoena AbbVie in drug pricing probe MORE (D-Md.) said in a statement at the time. “This is about the President defying a federal statute and denying our ability as Members of Congress to fulfill our constitutional duty to act as a check on the Executive Branch.”

Trump's real estate business has been the source of ongoing challenges for the president, with his critics accusing him and his family of continuing to profit off of the Trump Organization.