A federal appeals court on Wednesday ordered the dismissal of claims alleging President Donald Trump’s continued interest in his private business entities is violating the U.S. Constitution’s check against foreign and domestic influence of the White House.

The three-judge panel of the U.S. Court of Appeals for the Fourth Circuit said attorneys general for Maryland and the District of Columbia do not have “standing” to pursue claims that Trump is violating the Constitution’s emoluments clause. The court, siding with Trump, ordered a Maryland trial judge to dismiss the case with prejudice, a move that forecloses the ability of the plaintiffs to amend their complaint.