A federal court of appeals ruled in favor of President Trump on Wednesday, July 10, to dismiss a lawsuit alleging that the president illegally profits from foreign dignitaries who stay at the Trump International Hotel in Washington, D.C.

The case, brought against the president by the attorneys general of Washington, D.C. and Maryland, alleged that Trump is in violation of the emoluments clause of the U.S. Constitution that prohibit federal officeholders from receiving gifts or payments from foreign officials.

In a unanimous decision, the three-judge panel at the U.S. Court of Appeals for the 4th Circuit ruled that the attorneys general did not have legal standing to bring the suit against the president. The court decision effectively nullifies dozens of federal subpoenas that seek financial records related to the Trump-owned hotel.

President Trump’s attorney Jay Sekulow called the court’s decision a “complete victory,” stating, “This latest effort at Presidential harassment has been dismissed with prejudice.”

The Appeals Court reversed a ruling from a District Court judge in Maryland that had allowed the case to proceed by broadly interpreting the emoluments clause to include any “profit or advantage” received from foreign, federal or state governments, whether directly or indirectly.

Soon after the decision was announced, President Trump took to Twitter, to express his approval. “Word just out that I won a big part of the Deep State and Democrat induced Witch Hunt. Unanimous decision in my favor from The United States court of Appeals For the Fourth Circuit on the ridiculous Emoluments Case.”

Trump continued, “I don’t make money, but lose a fortune for the honor of serving and doing a great job as your President (including accepting Zero salary!).”

President Trump has reportedly removed himself from day-to-day management of the D.C. luxury hotel, but maintains ownership.