Microsoft saw a surprisingly strong performance in the cloud, but it’s also monetizing generative AI well and moderating capital-spending growth.