Apple to Pay Up to $500 Million to Settle Lawsuit Over Slow iPhones