Free cash flow at the enterprise software giant has tumbled over the past year as the company races to spend $50 billion on AI.