In one of the biggest upsets to transgender rights, an amendment makes a fundamental shift in how identity is recognised.