The tech giant rode a fresh market surge to hit the milestone, amid strong early sales for its new iPhone model in the U.S. and China