Seven women who accused Bill Cosby of sexual assault, and then sued him for defamation when his representatives accused them of lying, have settled their claims in their long-running case, according to documents filed Friday in federal court in Massachusetts.

“The plaintiffs have settled their claims against Mr. Cosby,” a lawyer for the seven women, Joseph Cammarata, said in an interview. “Each of the plaintiffs is satisfied with the settlement.”

Mr. Cammarata said the details of the settlement were confidential. The deal still awaits a judge’s approval.

A spokesman for Mr. Cosby confirmed that a settlement had been reached, but insisted Mr. Cosby was not paying. Instead, he said, Mr. Cosby’s insurance company, American International Group, was.