The United States and 11 other Pacific Rim nations on Monday agreed to the largest regional trade accord in history, a potentially precedent-setting model for global commerce and worker standards that would tie together 40 percent of the world's economy, from Canada and Chile to Japan and Australia.