WASHINGTON (AP) — The Biden administration doubled down Thursday on its unusual court battle to derail a plea deal that the government itself had reached with accused 9/11 mastermind Khalid Sheikh Mohammed.

It urged a federal appeals panel to block Mohammed’s guilty plea from going forward as scheduled Friday at Guantanamo Bay, Cuba. Defense lawyers described the attempts to throw out the agreement as the latest in two decades of “fitful” and “negligent” mishandling of the case by the U.S. military and successive administrations.

The fight has put the Biden administration at odds with the U.S. military officials it had appointed to oversee justice in al-Qaida’s attacks on Sept. 11, 2001, that killed nearly 3,000 people. It was the latest tumult and uncertainty in two decades of troubled prosecution tied to one of the deadliest attacks on American soil.

A new filing Thursday from Justice Department lawyers argued that the gravity of the “extraordinarily important case” warranted Defense Secretary Lloyd Austin intervening to throw out the plea deal.

Asked about the appeal Thursday after a meeting in Germany with allies about military support for Ukraine, Austin told reporters he had not changed his mind on the matter and cited the court challenge in declining further comment.

The deal, negotiated over two years and approved by military prosecutors and the Pentagon’s senior official for Guantanamo in late July, would spare Mohammed and two co-defendants the risk of the death penalty. It also obligates them to answer any lingering questions that families of the victims have about the attacks.

Defense attorneys say the plea agreements are already in effect and that Austin has no legal authority to throw them out after the fact.

At Guantanamo, preparations have moved ahead for Friday’s proceedings, and family members of some of the victims already have gathered. If the hearing goes forward, Mohammed would swear an oath in the military courtroom and then defense attorney Gary Sowards would enter pleas on his behalf to 2,976 counts of murder, along with other charges.

Pleas by co-defendants Walid bin Attash and Mustafa al Hawsawi would follow later this month. Attorneys say months of sentencing hearings to follow would give the government an opportunity to outline its case and allow families to speak of their loss.

The federal appeals panel appears on track to rule Thursday on the emergency request by the Biden administration.

Legal and logistical challenges have bogged down the 9/11 case in the 17 years since charges were filed against Mohammed, who prosecutors say conceived the idea of using hijacked planes in the attacks. The case remains in pretrial hearings, with no trial date set.

Years of defense and prosecution testimony have dragged on about how much the torture of Mohammed and other defendants in CIA custody renders their later statements unusable in court.

With that in mind, military prosecutors notified families of the victims this summer that the senior Pentagon official overseeing Guantanamo had approved a plea deal. They called it “the best path to finality and justice.”

Austin unexpectedly announced Aug. 2 that he was scrapping the agreement. He argued that a decision on death penalties in an attack as grave as Sept. 11 should only be made by the defense secretary.

The Biden administration went to the District of Columbia federal appeals court this week after the Guantanamo judge and a military review panel rejected Austin’s intervention.

Mohammed’s attorneys argued that Austin’s “extraordinary intervention in this case is solely a product of his lack of oversight over his own duly appointed delegate,” meaning the senior Pentagon official overseeing Guantanamo.

The Justice Department said the government would be irreparably harmed if the guilty pleas were accepted.

It said the government would be denied a chance for a public trial and the opportunity to “seek capital punishment against three men charged with a heinous act of mass murder that caused the death of thousands of people and shocked the nation and the world.”

___

AP reporter Tara Copp contributed from Ramstein Air Base, Germany.