Court rules in favor of Oklahoma in constitutionality case