Apple settles lawsuit over slowing down iPhones