Apple's year-over-year quarterly profit fell for the first time in a decade, but iPhone demand remained strong