A federal judge on Monday slapped down a suit by House Democrats who sought to block President Trump from tapping into Defense Department money for his wall along the southern border.

Washington, DC, district court Judge Trevor McFadden dismissed the suit, writing in his decision it is “about whether one chamber of Congress has the ‘constitutional means’ to conscript the Judiciary in a political turf war with the President over the implementation of legislation.”

He added that just because Congress doesn’t have the authority in this case, it does not mean they may not challenge the president in the courts in the future.

The Justice Department praised the ruling Monday, saying in a statement that the decision, “rightly ruled that the House of Representatives cannot ask the judiciary to take its side in political disputes and cannot use federal courts to accomplish through litigation what it cannot achieve using the tools the Constitution gives to Congress.”

Democrats were reviewing the ruling and deciding whether or not to appeal, a spokesperson for House Speaker Nancy Pelosi said.