The tech giant had been sued for secretly diminishing the devices’ functionality to persuade customers to purchase a new phone.