Alphabet Inc's (NASDAQ:GOOGL) Google Inc has agreed to buy the electricity generated by 396 MW of wind farms in Iowa and South Dakota to power its global operations.