Hungary has made it impossible for people to legally change gender, ending the legal recognition of transgender people in law.