Strong corporate earnings and growing confidence in artificial intelligence investments are strengthening Wall Street’s outlook for the benchmark US stock index