Canada has agreed to a resurrected version of the Trans-Pacific Partnership and will sign on to the deal.

The deal, renamed the Comprehensive and Progressive Agreement for Trans-Pacific Partnership, comes after talks in Japan this week with the 11 countries still committed to the deal.

"We are happy to confirm the achievement of a significant outcome on culture as well as an improved arrangement on autos with Japan, along with the suspension of many intellectual property provisions of concern to Canadian stakeholders," said International Trade Minister Francois-Philippe Champagne in a statement.

PM arrives for first day of the WEF in Davos Switzerland 0:16

"Canada has always said that we would only agree to a deal that is in Canada's best interests."

Canada was seen as the main holdout during talks in Vietnam last November. Prime Minister Justin Trudeau sparked an international controversy when he didn't sign an agreement in principle, arguing Canada had concerns about the pact's culture and the automotive sectors.

A Canadian official with close ties to the deal said Champagne spent the weekend, and into Monday night, speaking to his TPP counterparts on the phone.

Culture file important to Canada

Last week, Trudeau also appointed Ian McKay, chief executive of the Vancouver Economic Commission, as his special envoy to Japan.

Praised for his "deep knowledge" of how business works in that country as well as his fluent Japanese, officials say he played an important role in securing a deal.

PM Justin Trudeau announces the Trans Pacific partnership deal that was reached while speaking at the World Economic Forum in Davos, Switzerland. 1:26

Sources say Canada made "real gains" on the pact's labour and environment chapters, and suspended what the government saw as a problematic dispute settlement provisions and an intellectual property section.

In November, Canada pushed to change provisions relating to culture and French-language rights. It said the other 10 countries did "affirm the right of each party to preserve, develop and implement its cultural policies.

"We all understand we need to do more on culture. I've said Canada will not settle for less. It was essential for me to fight for Canadian culture," Champagne said at the time.

A government source said Champagne continued to push hard for an exemption on cultural items and recently secured ìt through legally binding side letters with every other CPTPP member country.

Canadian auto industry outraged

A bigger sticking point was the auto sector.

Canada wrangled a bilateral arrangement with Japan to resolve non-tariff barriers, including a binding dispute settlement mechanism, an official told The Canadian Press.

Trade Minister <a href="https://twitter.com/FP_Champagne?ref_src=twsrc%5Etfw">@FP_Champagne</a> rejects the auto industry's concerns over <a href="https://twitter.com/hashtag/CPTPP?src=hash&ref_src=twsrc%5Etfw">#CPTPP</a>, says market access through side letter w/ Japan is an achievement. <a href="https://twitter.com/hashtag/cdnpoli?src=hash&ref_src=twsrc%5Etfw">#cdnpoli</a> <a href="https://twitter.com/hashtag/TPP11?src=hash&ref_src=twsrc%5Etfw">#TPP11</a> <a href="https://t.co/kPkr2NwOeH">pic.twitter.com/kPkr2NwOeH</a> —@PnPCBC

The deal also includes a bilateral agreement with Malaysia to adjust auto rules-of-origin, and another agreement was being finalized with Australia, they added.

Flavio Volpe of the Toronto-based Auto Parts Manufacturers' Association said this agreement moves Canada in the exact opposite direction of where the U.S. is headed, just as the tense North American Free Trade Agreement talks resume.

.<a href="https://twitter.com/FlavioVolpe1?ref_src=twsrc%5Etfw">@FlavioVolpe1</a> explains why the auto industry is concerned about the rules of origin agreed to in <a href="https://twitter.com/hashtag/CPTPP?src=hash&ref_src=twsrc%5Etfw">#CPTPP</a>. <a href="https://twitter.com/hashtag/cdnpoli?src=hash&ref_src=twsrc%5Etfw">#cdnpoli</a> <a href="https://twitter.com/hashtag/NAFTA?src=hash&ref_src=twsrc%5Etfw">#NAFTA</a> <a href="https://t.co/AKSmJ2AWHa">pic.twitter.com/AKSmJ2AWHa</a> —@PnPCBC

He said the U.S. is pushing for a new NAFTA that increases domestic content requirements, and keeps Chinese parts out of North America, but the revised Asia-Pacific pact reduces local requirements and lets more product from non-TPP countries like China into the market.

"This could not be a dumber move at a more important time," Volpe said in an interview.

Unifor President Jerry Dias, head of Canada's largest private sector union, was also quick to slam the deal, saying it would be detrimental to workers.

A new <a href="https://twitter.com/hashtag/TPP?src=hash&ref_src=twsrc%5Etfw">#TPP</a> deal – what B.S.? Who knew! This isn’t the kind of transparent governance Cdns were promised. Let’s be clear, the TPP is the worst trade deal ever! <a href="https://twitter.com/hashtag/canlab?src=hash&ref_src=twsrc%5Etfw">#canlab</a> <a href="https://twitter.com/hashtag/cdnpoli?src=hash&ref_src=twsrc%5Etfw">#cdnpoli</a> —@JerryPDias

"This isn't progress for workers, it's a mockery," he tweeted.

NAFTA talks resume

Some assumed the original deal was dead when U.S. President Donald Trump withdrew from it after assuming office.

But the remaining countries carried on with negotiating.

Japanese Economy Minister Toshimitsu Motegi said his country would explain the importance of the deal to Washington in hopes of persuading it to join.

He said the new CPTPP would be an "engine to overcome protectionism" emerging in parts of the world

"This outcome reaffirms the CPTPP countries' collective commitment toward greater trade liberalization and regional integration," added Singapore's Ministry of Trade and Industry said in a statement.

While signing the deal is a feather in Champagne's hat, the deal comes the same day the sixth round of talks on NAFTA kick off in Montreal.

This round is expected to be the most tense round of negotiating yet as Canada, the U.S. and Mexico dive into the most controversial chapters, including the auto and dairy sectors and a proposed sunset clause.

Volpe accused Champagne of chasing a legacy item, without thinking of how chasing the CPTPP could hurt NAFTA negotiations.

"We're trophy hunting," Volpe said.