Microsoft reported a massive spike in its spending as the tech giant works to meet booming demand for artificial intelligence.