Google gets US approval to buy and sell energy