U.S. companies are underwriting the European Union’s ambitious climate goals, fueling the bloc’s green-energy transition with power deals that cut emissions and costs. Alphabet Inc.’s Google bought enough wind and solar energy for its EU data centers last year to power roughly a half-million European homes annually. Investments…