The settlement was announced by the attorneys general of the District of Columbia, New York and Illinois on Wednesday.