The California Public Utilities Commission agreed to retain a system that pays users of rooftop solar panels a retail rate for the electricity they return to the grid.