Allowing gender self-identification on government documents complicates legal identification, from passports to immigration.