Company says Santa Clara violated California environmental law in considering its new rules on generating electricity.