Apple has been long criticized for its lack of an AI strategy, but now the company’s more measured approach to spending looks attractive.