Apple reported fiscal first-quarter earnings that topped estimates as its services revenue rose, though iPhone sales fell short.