The new law comes as California regulators consider reforming their existing net energy metering framework. A previous proposal received sharp criticism from the solar industry.