The two countries agreed terms, but Canada, the third member of the Nafta accord, was not part of the discussions.