A law requiring sterilization surgery to change a person’s legal gender has been declared “unconstitutional.’