Apple’s iPhone sales soared to a new quarterly record during the holiday season, despite artificial intelligence blunders that prompted the technology trendsetter to get a helping hand from Google.