The Senate will not vote on the Trans-Pacific Partnership this year because of “serious flaws” in the agreement, Majority LeaderMitch McConnell told a farm group, effectively ending President Barack Obama’s drive for congressional approval before he leaves office in January.

Obama has touted the 12-nation agreement as an ambitious undertaking that he hoped would be the centerpiece of his trade legacy.

In a Louisville Courier-Journal video, McConnell, R-Ky., said the next administration could renegotiate troublesome areas in the trade pact between the United States and 11 Pacific nations to win enough congressional votes to pass. The House and the Senate must each approve the trade agreement for it to take effect.

“It can be massaged, changed, worked on during the next administration,” McConnell told the Kentucky Farm Bureau Federation on Thursday. He had previously said the Senate wouldn’t consider the agreement before the election on Nov. 8.

McConnell also made passing reference at the meeting to an anti-trade mood in the United States. “It seems like the politics of trade have become rather toxic,” he said.