Lawsuit victory triggers de facto moratorium on fracking in the state as a bill that would freeze renewable energy shift at current rate heads towards senate vote