Apple has settled a 2015 class-action lawsuit that accused it of throttling the iPhone 4S with the iOS 9 update.