The Supreme Court is hearing a legal challenge on Wednesday to the state’s ban on several forms of medical care for transgender youth.