WASHINGTON — President Trump ended a losing streak in court clashes with the House on Monday, as a federal judge rejected the Democrat-controlled chamber’s lawsuit seeking to stop him from using emergency powers to build a wall along the southwestern border.

Judge Trevor N. McFadden of the United States District Court for the District of Columbia, who was appointed by Mr. Trump, ruled that the House could not show that it had suffered the sort of injury that gave it standing to sue.

The ruling will not have any immediate practical consequences because other groups have already secured an order blocking Mr. Trump from proceeding. But if other courts accept Judge McFadden’s reasoning, the House’s litigation options will narrow as it battles the president on several fronts.

Rulings from trial judges do not set binding precedents, however, and Judge McFadden’s ruling did not concern subpoenas issued by the House seeking information from the administration. He said a different legal analysis applied to disputes arising from such subpoenas.