Such a “rule” can be fought. It sounds like it’s using the individuals of the public to subsidize a corporation, which I am going to guess already gets huge subsidies through taxes. Taxes are legit, but each household being required to have a contract with a non-competitive company is far from it. Your own self-contained solar is literally a “utility service” anyway.