AUCKLAND, New Zealand — The biggest trade deal in history was signed Thursday, yoking 12 Pacific rim countries in a United States-led initiative aimed at wresting influence from booming China.

The ambitious Trans Pacific Partnership (TPP) aims to slash tariffs and trade barriers for an enormous 40% of the global economy — but pointedly does not include Beijing.

“TPP allows America — and not countries like China — to write the rules of the road in the 21st century,” President Barack Obama said after the pact was signed in New Zealand.

The deal — whose birth was fraught by domestic opposition in the U.S. and in other key players, such as Japan — is a key plank of Obama’s so-called “pivot” to Asia, as he seeks to counter the rising power of China.

Along with a rebalancing of the U.S. military machine toward the western Pacific, the TPP is recognition of the growing might of China, which has come to dominate the region, threatening American influence.

Supporters of the deal say harnessing the power of free trade in such a dynamic part of the world is vital if the U.S. is to fend off China’s challenge to its supremacy.

“Today’s signing of the TPP helps U.S. businesses move one step closer to expanded trade opportunities and investment ties with a group of countries that represent close to 40% of the global economy,” HSBC Bank CEO and president Patrick J. Burke said. “It also helps to further connect the U.S. economy to cross-border markets, suppliers and customers."

Trade ministers from 12 participating countries — Australia, Brunei, Canada, Chile, Japan, Malaysia, Mexico, New Zealand, Peru, Singapore, the United States and Vietnam — signed the pact in Auckland early Thursday.

Beijing was muted in its reaction to the deal, saying its officials were studying the 6,000-page document. A commerce ministry statement said China would “actively participate in and facilitate highly transparent, open and inclusive free trade arrangements in the region.”

Despite Obama’s comments, the U.S. has also sought to play down any overt anti-China rhetoric.

U.S. trade representative Michael Froman said the agreement was “never directed against” any specific country and “it’s important to have a constructive economic relationship” with China. 

Although the signing marks the end of the negotiating process, member states still have two years to get the deal approved at home before it becomes legally binding. 

“We will encourage all countries to complete their domestic ratification processes as quickly as possible,” New Zealand prime minister John Key said. “TPP will provide much better access for goods and services to more than 800 million people across the TPP countries, which make up 36% of global GDP.” 

However, ratification might prove far from easy, notably in the United States, where poisonous election-year politics are likely to stymie cooperation over a deal opponents have spun as a job killer.

“(Ratification is) highly unlikely before the national elections in November,” Tom Switzer of the University of Sydney’s U.S. Studies Centre told AFP. “In an election year, free trade is not a popular cause, and there are a lot of constituencies in both the Democratic Party and the Republican Party who are very much opposed to free trade or any kind of trade deal.”

In Japan – the second-biggest economy in the bloc, and one that was a relative latecomer to the process – mainstream politicians and economists have generally supported the TPP as positive for Tokyo’s export-driven growth even amid concerns over its impact on its prized agriculture industry.

The Canadian government, which has changed since the deal was negotiated, signed up Thursday but has yet to decide whether to go through with ratification.

While the 12 trade ministers were shaking hands in Auckland, thousands of protesters clogged the streets outside to voice their opposition. They argue the TPP will cost jobs and impact on sovereignty in Asia-Pacific states. 

American economist and Nobel Prize winner Joseph Stiglitz believes the TPP “may turn out to be the worst trade agreement in decades. 

“In 2016, we should hope for the TPP’s defeat and the beginning of a new era of trade agreements that don’t reward the powerful and punish the weak,” he recently wrote in The Guardian newspaper.

By Michael Bradley

Copyright Agence France-Presse, 2016