Apple reported 17% revenue growth, topping estimates, even as iPhone sales came up short.