Supreme Court rules on water fight between Montana, Wyoming