Investors to scrutinise AI spending plans from companies that represent almost one-fifth of the S&P 500’s market cap