A dozen Pacific-rim nations agreed to an historic pact that would cut trade barriers on items ranging from cars to rice, setting up a potentially contentious ratification vote before a skeptical U.S. Congress. After a week of final talks in Atlanta, an agreement was announced on the Trans-Pacific Partnership, a pact more than five years in the making designed to boost commerce among nations that produce 40 percent of global economic output.