Net metering — the ability to sell excess electricity back to the grid for fun and profit — has helped make rooftop solar panels the centerpiece of the home energy transition for more than a decade.