Twenty-two states have backed the Trump administration's attempts to stop medical treatments for transgender minors.