The world’s most valuable company reported lower revenue and profits for the quarter ending April 1, but still beat analysts’ expectations.