By midnight Sunday, Apple — one of the most powerful companies in the world — had capitulated to the 25-year-old pop star, saying it would pay royalties on all music for the three-month trials. One of its senior executives, Eddy Cue, even said he called Ms. Swift personally to give her the news.