Today’s ruling is a disaster for the environment, but there is a way forward.