The settlement ended a trial in the class action lawsuit that began the same day in a New York courtroom.