The AI boom is pushing companies across the economy — from tech giants to automakers — deep into the energy business.