It's the other way around: renewables come first, AI boom comes second. That's why, despite the initial lead, US has already lost the AI race. For the next decade or two US AI companies will be tied up in legal fights over electricity demands of their data centers, while China, having abundance of electricity, will build hundreds of AI data centers and leapfrog US.
We could have had cheap AI and renewables, but now we'll get expensive AI controlled by the data center owners and a few extra GW of gas turbines once the moratoriums really start flowing. If Musk has his way, we'll also get thousands of rocket launches building solar panels - but only in my space, where they can't do much to help the climate.
(Still a lot of coal, but massive build out…)