Kennedy’s declaration was the latest move by the Trump administration to curtail gender transition care for minors.