Shares of several tech companies specializing in artificial intelligence products soared Wednesday after Google parent Alphabet said it plans to ramp up spending on AI.