The action is the latest by the Trump administration to limit transgender rights in the U.S.