A federal appeals court on Tuesday ruled that prosecutors did not break the law in negotiating a plea agreement with Jeffrey Epstein while keeping his victims in the dark more than a decade ago.

A three-judge panel on the Eleventh Circuit Court of Appeals ruled 2-1 that federal prosecutors, led at the time by former Trump administration Labor Secretary Alexander AcostaAlex Alexander AcostaFlorida sheriff ends work release program criticized over Jeffery EpsteinThe Hill’s Morning Report Presented by National Association of Manufacturers Whistleblower complaint roils WashingtonOn The Money: Senate confirms Scalia as Labor chief | Bill with B in wall funding advanced over Democrats’ objections | Lawyers reach deal to delay enforcement of NY tax return subpoenaMORE, did not violate victims’ rights laws in negotiating a lenient and secretive plea agreement for the late financier.

But the ruling tore into the prosecutors for their handling of Epstein’s case, which the judges called a “national disgrace. 

“Despite our sympathy for Ms. Wild and others like her, who suffered unspeakable horror at Epsteins hands, only to be left in the darkand, so it seems, affirmatively misledby government lawyers, we find ourselves constrained to deny her petition,” the court ruled, referring to Courtney Wild, a victim of Epstein’s who brought the case against the prosecutors. 

“Because the government never filed charges or otherwise commenced criminal proceedings against Epstein, the [Crime Victims’ Right Act (CVRA)] was never triggered,” the opinion reads. “Its not a result we like, but its the result we think the law requires.”

The ruling overturns a federal judge’s decision last year that found that the Miami U.S. Attorney’s Office, under Acosta, had broken the law by keeping Epstein’s dozens of victims in the dark about the plea agreement in 2008. The judge had also found that the prosecutors illegally lied to the victims by telling them that a sex trafficking investigation that had been closed was still ongoing.

After a federal law enforcement investigation found that Epstein had been sexually abusing dozens of girls as young as 14 over the course of a decade, he reached an agreement with the U.S. Attorney’s office to plead guilty to two state prosecution charges and he ended up serving just 13 months in Palm Beach County jail. 

The scandal resurfaced last year after Epstein’s arrest in New York and led to Acosta resigning from his cabinet post.

Tuesday’s ruling holds that the victims’ rights law requires that prosecutors keep victims only when a criminal case is underway. Because Acosta’s office never filed federal charges against Epstein, it was under no legal obligation to keep his victims updated on new developments, the two-judge majority reasoned.

Judge Frank Hull, the lone dissenter on the panel, lashed out at the majority in her own opinion, warning of the repercussions the decision will have for crime victims.

“The Majoritys new blanket restriction eviscerates crime victims CVRA rights and makes the Epstein case a poster-child for an entirely different justice system for crime victims of wealthy defendants,” Hull wrote.

Epstein was found dead in a New York City jail cell last year of apparent suicide while being held on separate charges from the Manhattan U.S. Attorney.