Apple to pay up to $500 million for slowing down older iPhones