Updated

A second Pennsylvania Supreme Court justice quit the bench Tuesday in a widening scandal over raunchy and otherwise offensive emails that he and others exchanged with friends and lawyers.

Justice Michael Eakin's decision to retire marks the latest fallout since embattled state Attorney General Kathleen Kane began releasing hundreds of emails in 2014 to the media and ethics agencies. Kane has since been indicted on perjury and other charges that she claims were trumped up because she took on the old boys' club of Pennsylvania's judiciary and law enforcement.

Eakin's lawyer, Bill Costopoulos, said at a news conference that an ethics trial on charges related to the emails, which had been scheduled to start in two weeks, would not proceed. He said Eakin would agree to the allegations, leaving "nothing left to try."

"This is the only process I know of in America where you can be charged with sending emails to friends that were inappropriate and face the death penalty," Costopoulos said. "I just don't think that's right."

Justice Seamus McCaffery, a Democrat, abruptly retired in 2014 after being suspended by the court for his role in swapping the emails.

The board that investigates accusations of judicial misconduct has said that Eakin sent or responded to emails that included a satirical video about a busload of "sluts" crashing, a joke about a woman told to keep "her mouth shut," and a joke about Tiger Woods that referred to his African-American and Asian background.

The email scandal, centered on the attorney general's office, has already led to dozens of people being disciplined or losing their jobs.

Eakin, 67, a Republican, has been on the state Supreme Court since 2002.

During tearful testimony in December, Eakin apologized for what he said he "allowed to happen," but he accused the news media of sensationalism and argued his job performance hadn't been affected.

"Perhaps my demeanor is one of the boys," Eakin said. "But what I sent was to people who were also one of the boys. It was in the locker room. I allowed, I created something that could be released."

The state constitution says judges lose their pensions if they act in a way that "brings the judicial office into disrepute," one of the allegations against Eakin. Costopoulos said he hoped that would not occur but it was not certain.

"We have lost one of the finest jurists of our court in the recent past," Costopoulos said. "His opinions and writing will withstand the test of history. What has happened to him and what has been done to him will not."

Lynn Marks with the good government group Pennsylvanians for Modern Courts said Eakin's decision to step down was in the best interests of the judicial system, particularly in how the public perceives it.

"We hope that the court can move on from this, and that the remaining justices and judges at all levels will understand — if they don't already — how important it is that they be above reproach in their behavior and their words when dealing with all participants in the legal process, including with each other," Marks said.

When Kane, a Democrat, turned over the new trove of emails in September, it was barely a week after Eakin voted with four other justices to suspend her law license. She argued the emails could violate rules that require judges to act in a way that promotes public confidence and prohibit them from appearing to undermine their independence, integrity and impartiality.

Kane's license was suspended after prosecutors in suburban Philadelphia charged her with perjury and other offenses for allegedly leaking secret grand jury material and lying about it. She is not seeking a second term this year, and her criminal trial is scheduled for August.

The exchange of explicit and pornographic emails by state prosecutors was uncovered as part of Kane's internal review of how the office handled the investigation into Jerry Sandusky, the former Penn State assistant football coach now serving a lengthy prison sentence after being convicted in 2012 of 45 counts of child sexual abuse.

Eakin's resignation leaves the seven-member Supreme Court with five Democrats, one Republican and one vacancy. A replacement would be nominated by Democratic Gov. Tom Wolf and require two-thirds confirmation by the Republican-controlled Senate.

Wolf issued a statement calling the case "another reminder of why we must all work with urgency to restore the public's trust in their government as well as the integrity of the judicial system."