Negotiators from the United States , the 27 nations of the European Union , Japan , Australia , Canada , South Korea , Mexico , Morocco , Singapore and Switzerland reached a tentative agreement in late September on the pact , which has been years in the making .