Local authorities free to sell renewable energy back to the grid