Driven by a flood of Silicon Valley money, AI has emerged as one of the biggest financial forces in this year’s U.S.