Critics have denounced the US ruling as endangering transgender youth by preventing medical access to puberty blockers.