The president who ran for office complaining that the system is rigged has a Cabinet secretary who as a prosecutor rigged the system in favor of a sex offender.

A U.S. District judge ruled Thursday that U.S. Labor Secretary Alexander Acosta committed a crime in 2007 when, as a U.S. prosecutor at the time, secretly gave a lenient plea deal to a politically-connected billionaire accused of sex trafficking underage girls.

In a case brought by victims of billionaire and Trump associate Jeffrey Epstein, Judge Kenneth Marra found that Acosta and other federal prosecutors violated the Crime Victims’ Rights Act by brokering a plea deal with Epstein, allowing him to serve only 13 months in a county jail for his crimes, and then sealing the agreement.

The ruling came nearly three months after the Miami Herald‘s explosive report on the plea deal, which prompted the Justice Department to begin investigation into the prosecutors’ conduct.

Marra’s decision led to renewed calls for Acosta—who was appointed by President Donald Trump and who as head of the Labor Department is responsible for combating sex trafficking—to resign.

By sealing Epstein’s plea agreement, Acosta stole from more than 30 of Epstein’s victims—some of whom were as young as 13 when they were recruited by his paid employees and then coerced into sex acts by him—the chance to attend Epstein’s sentencing and demand a harsher punishment.

While the government spent untold hours negotiating the terms and implications of the [agreement] with Epstein’s attorneys, scant information was shared with victims,” Marra found.

The government aligned themselves with Epstein, working against his victims, for 11 years,” Brad Edwards, the attorney representing the women who survived Epstein’s abuse, told the Herald. “Yes, this is a huge victory, but to make his victims suffer for 11 years, this should not have happened. Instead of admitting what they did, and doing the right thing, they spent 11 years fighting these girls.

Epstein’s victims and the U.S. government now have 15 days to come to a resolution following Marra’s ruling.