The legislation would terminate U.S. membership in the United Nations and its affiliated bodies, and funding to those groups.