If I'm not mistaken, ICANN uses the ISO 3166-1 alpha-2 codes as country TLD's, so in a sense the UN indirectly specifies the rules for ICANN. https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
Jon Postel, RFC 1591 (Domain Name System Structure and Delegation)