MPs adopt law simplifying gender change