A small number of countries have made it easier for transgender people to change their legal gender, while other nations have restricted such changes, notably Russia and Pakistan