WASHINGTON — Alina Habba said she is resigning as the acting U.S. attorney for the district of New Jersey after a federal appeals court ruled last week she has been unlawfully serving as the state's top federal prosecutor.

Habba, a former personal attorney of President Donald Trump, announced her decision in a Dec. 8 post on X.

"As a result of the Third Circuit's ruling, and to protect the stability and integrity of the office which I love, I have decided to step down," Habba said. "But do not mistake compliance for surrender. This decision will not weaken the Justice Department and it will not weaken me."

The 3rd Circuit Court of Appeals upheld U.S. District Judge Matthew Brann's August decision that the Trump administration violated a federal appointments law in naming Habba as acting U.S. Attorney in New Jersey. Brann disqualified Habba from participating in ongoing cases.

Habba's exit is the latest blow to Trump and his Justice Department as they seek to install loyalists to oversee key U.S. attorney's offices around the country. Habba's appointment was challenged by multiple criminal defendants in New Jersey.

Attorney General Pam Bondi, in a written statement, said she is "saddened to accept Alina's resignation" following what Bondi called a "flawed" decision by the court of appeals.

"The court's ruling has made it untenable for her to effectively run her office, with politicized judges pausing trials designed to bring criminals to justice," Bondi alleged, calling Habba's departure "particularly unfortunate given Alina's strong record of achievement in office." She credited Habba with helping to reduce crime in Camden and Newark, New Jersey.

Bondi said the Justice Department is seeking a "further review" of the decision and expressed confidence it will be reversed. The attorney general said Habba intends to return to her role as U.S. attorney for New Jersey if this occurs. In the meantime, Bondi said Habba will continue working in the Justice Department as a senior adviser to the attorney general for U.S. attorneys.

Habba's departure comes after a federal judge ruled in November that Bondi tried to unlawfully install another former personal lawyer to Trump, Lindsey Halligan, to lead the U.S. Attorney's Office for the Eastern District of Virginia.

That ruling threw out charges against former FBI Director James Comey and New York Attorney General Letitia James, both critics of the president. Bondi has vowed to appeal the Halligan decision.

What were the issues with Habba's appointment?

In Habba's case, Trump nominated her to serve as the interim U.S. attorney for New Jersey in March, and then nominated her on June 30 to serve permanently in the role. However, the permanent nomination requires Senate confirmation, which never happened for Habba.

On July 22, as the 120-day window on Habba's interim appointment was set to close, a panel of judges declined to appoint Habba to head the office permanently. The judges ruled that, under a law that gives judges the power to fill vacancies after the 120-day term expires, Desiree Grace, who was the first assistant U.S. attorney in New Jersey, would become the interim U.S. attorney once Habba's term expired.

In response, the Trump administration fired Grace, withdrew Habba's nomination before the Senate, and appointed Habba as the first assistant U.S. attorney for New Jersey. Justice Department lawyers argued that meant Habba automatically became acting U.S. attorney. The administration also appointed Habba as a special attorney with the powers of a U.S. attorney, as a second avenue to achieve Habba's appointment.

However, the 3rd Circuit ruled Habba couldn't automatically become the acting U.S. attorney because she was installed as first assistant after, rather than before, the U.S. attorney role became vacant.

This story has been updated to add new information.

Reach Joey Garrison on X @joeygarrison.

This article originally appeared on USA TODAY: Former Trump lawyer Alina Habba resigns as US attorney for New Jersey

Reporting by Joey Garrison and Aysha Bagchi, USA TODAY / USA TODAY

USA TODAY Network via Reuters Connect