Stocks shrugged off worries connected to AI companies while traders focused on the prospects for U.S. growth and Federal Reserve interest rate cuts.