Apple unveiled software upgrades that would let older iPhones run faster, helps users manage how much time they spend with their devices, and make make it difficult for advertisers to track users of Apple devices.