The Montana Supreme Court has ruled that a water rights compact for the Confederated Salish-Kootenai Tribes is in compliance with the state Constitution, after a contentious period of resistance to the compact that has carried on for much of the last decade.