This article is more than 5 years old

This article is more than 5 years old

In a victory for President Barack Obama, the Senate passed bipartisan legislation on Friday night to strengthen the administration’s hand in global trade talks, clearing the way for a highly unpredictable summer showdown in the House.

The vote was 62-37 to give Obama authority to complete trade deals that Congress could approve or reject, but not change. A total of 48 Republicans supported the measure, but only 14 of the Senate’s 44 Democrats backed a president of their own party on legislation near the top of his second-term agenda.

Obama hailed the vote in a statement that said trade deals “done right” are important to “expanding opportunities for the middle class, levelling the playing field for American workers and establishing rules for the global economy that help our businesses grow and hire”.

Separate legislation to prevent parts of the anti-terror USA Patriot Act from lapsing on 1 June was caught in a post-midnight showdown between a pair of Kentuckians – the majority leader, Mitch McConnell, on the one hand, and presidential hopeful Rand Paul on the other.

McConnell favoured renewal of a programme of bulk telephone collection by the National Security Agency, while Paul was unyielding in opposition. “My filibuster continues to end NSA illegal spying,” he tweeted.

By contrast, a two-month bill to prevent a cutoff in federal highway funding cleared with ease as lawmakers eyed a week-long vacation.

Senate passage of the trade bill capped two weeks of tense votes and near-death experiences for legislation the administration hopes will help complete an agreement with Japan and 10 other countries in the Pacific region.

McConnell, who was Obama’s indispensable ally in passing the bill, said it would create “new opportunities for bigger paychecks, better jobs and a stronger economy”.

“The tools it contains will allow us to knock down unfair foreign trade barriers that discriminate against American workers and products stamped ‘Made in the USA’,” he said.

A fierce fight is likely in the House. Speaker John Boehner supports the measure, and said in a written statement that Republicans will do their part to pass it. But in a challenge to Obama, the Ohio Republican added that “ultimately success will require Democrats putting politics aside and doing what’s best for the country”.

Dozens of majority Republicans currently oppose the legislation, either out of ideological reasons or because they are loth to enhance Obama’s authority, especially at their own expense.

And Obama’s fellow Democrats show little inclination to support legislation that much of organised labour opposes. In the runup to a final Senate vote, Democratic supporters of the legislation were at pains to lay to rest concerns that the legislation, like previous trade bills, could be blamed for a steady loss of jobs.

“The Senate now has the opportunity to throw the 1990s Nafta playbook into the dust bin of history,” said Senator Ron Wyden. He referred to the North American Free Trade Agreement, passed two decades ago, and a symbol to this day, fairly or not, of the loss of unemployment to a country with lax worker safety laws and low wages.

Like Obama, Wyden and others said this law had far stronger protections built into it.

One final attempt to add another one failed narrowly, 51-48, a few hours before the bill cleared.

It came on a proposal, by senators Rob Portman, who supported the trade bill, and Debbie Stabenow, who opposed it. They sought to make allegations of currency manipulation subject to the same “dispute settlement procedures” as other obligations under any trade deal.

The treasury secretary, Jacob Lew, warned earlier that its approval could cause Obama to veto the legislation.

Portman, who was US trade representative under former president George W Bush, scoffed at the threat. “I don’t think so,” he said. “I think he [Obama] understands the importance” of his ability to conclude trade deals without congressional changes.

The bill also included $1.8bn in retraining funds for American workers who lose their jobs as a result of exports. Senator Jeff Flake said the programme duplicated other federal efforts, but his attempt to strip out the funds was defeated, 53-35.

Allies on one bill, McConnell and the White House were on different sides on the Patriot Act legislation.

The White House spokesman, Josh Earnest, prodded the Senate to accept a House-passed bill renewing anti-terrorism programmes due to expire 1 June, including a provision to eliminate the National Security Agency’s ability to collect mass telephone records of Americans. Instead, the material would remain with phone companies, with government searches of the information allowed by court order on a case-by-case basis.

But the bill was blocked on a vote of 57-42, three shy of the 60 needed, and Paul then blocked several bids by the majority leader to pass short-term extensions of the current programmes. Finally, McConnell announced the Senate would return on the last day of the month – with only hours to spare – to try and resolve the issue.

The highway bill was the least controversial of the three on the Senate’s pre-vacation agenda, but only because lawmakers agreed in advance on a two-month extension of the current law. The House and Senate will need to return to the issue this summer.