calling the law a necessary step in protecting young people from what they described as irreversible medical interventions.