ByZachary Folk,

Forbes Staff.

An appeals court on Monday upheld the ruling that Alina Habba, President Donald Trump’s former personal attorney, was unlawfully appointed as U.S. Attorney for New Jersey, a setback after the Trump administration fought to keep her in the role.

Habba was named acting U.S. attorney for New Jersey in March, but her temporary status ended in July, prompting the Trump administration to use a legal maneuver to keep her in place by appointing her second-in-command at the office and firing the interim attorney appointed by a panel of judges.

A lower court ruled Habba’s appointment was unlawful in August, but the Department of Justice appealed the ruling.