The landmark ruling says all EU member states must allow transgender people to update legal documents, finding such bans violate EU law.