The move could create both bureaucratic headaches and heightened risk for trans immigrants.