A Montana judge said state agencies were violating their constitutional right to a clean and healthful environment by allowing fossil fuel development.