“There is fierce debate over how best to help minors with gender dysphoria,” Thomas wrote.