The University of Southern California has agreed to pay $240 million to settle sexual abuse claims by potentially tens of thousands of women involving its former campus gynecologist.

The settlement, announced on Friday, comes in a consolidated class action in federal court against USC and Dr. George Tyndall, the campus gynecologist for more than two decades. The plaintiffs, most of whom sued anonymously, claim Tyndall made inappropriate remarks and performed unnecessary procedures on female students. The suits allege that USC knew about the complaints but did nothing about them.