The change is in line with other Trump administration policies that seek to reverse transgender rights.