U.S. President Donald Trump on Wednesday scored a crucial victory in a Democratic-backed lawsuit that accuses him of violating anti-corruption provisions of the U.S. Constitution with his Washington hotel.

The Richmond, Virginia-based 4th U.S. Circuit Court of Appeals issued a set of decisions instructing a lower court judge to dismiss the lawsuit filed against the Republican president in June 2017 by the Democratic attorneys general of Maryland and the District of Columbia.

The three-judge panel said the attorneys general lacked legal standing to bring the case.