Alphabet Inc.’s Google is investing in mega energy parks that will generate renewable power as the company races to fuel its data centers.