Judge has ruled that the state law banning procedures or therapies for children under 18 doesn’t violate parents’ constitutional rights.