Google Inc. agreed to buy 407 megawatts of wind power from Warren Buffett’s MidAmerican Energy Holdings Co., the technology company’s largest deal to date for renewable energy.