One of the world’s biggest technology companies is set to become the planet’s largest user of renewable energy after it announced more than two dozen wind and solar projects last week.