(Bloomberg) -- The Senate blocked a measure to impose new sanctions on the Nord Stream 2 gas pipeline from Russia to Germany after the Biden administration warned it could disrupt allied unity in the confrontation over Ukraine.

The measure by Republican Senator Ted Cruz of Texas failed on a vote of 55 to 44. It needed 60 votes to pass. 

The vote was held open for several hours as Democrats grappled with a setback on unrelated voting rights legislation.

“Russia has nakedly and unequivocally used energy as energy blackmail,” Cruz said Thursday on the Senate floor. President Vladimir Putin has done that “openly, brazenly and laughingly and absolutely nothing happened,” Cruz said.

Opponents of the measure said it would damage U.S. cooperation with Germany and other NATO partners as they try to head off a potential invasion of Ukraine by Putin’s forces deployed on its borders.

The bill “would undermine the current diplomatic situation,” said Senator Jeanne Shaheen, a New Hampshire Democrat who had introduced earlier sanctions proposals with Cruz. “We are in a very different situation right now” than when two earlier bills were passed.

The Biden administration also has argued that imposing new sanctions on the undersea pipeline now could undercut the U.S.’s ability to persuade other European nations to join in severe economic penalties later if Russia invades Ukraine. 

The legislation “will not counter further Russian aggression or protect Ukraine,” Emily Horne, a spokesperson for the National Security Council, said in a statement Wednesday. “Instead, it will undermine our efforts to deter Russia and remove leverage the United States and our allies and partners possess in this moment all to score political points at home.”

The White House backed an alternative plan from Senator Bob Menendez, the New Jersey Democrat who heads the Foreign Relations Committee, that would make the sanctions contingent on Russia’s actions in Ukraine. Nearly 40 senators have signed on to that bill.

Earlier: White House Says Bill Sanctioning Nord Stream Undercuts Talks

But Senate Minority Leader Mitch McConnell said that the pipeline is what’s divisive. Unlike an older Nord Stream pipeline, the new one bypasses Ukraine.

“The government of Germany should have shelved this project itself a long time ago,” McConnell said. “These sanctions, like the prior Nord Stream 2 sanctions that had overwhelming bipartisan support here in Congress, are not about driving a wedge in Europe. The pipeline itself is the wedge.”

McConnell called for a stronger stance against Russia, saying on the Senate floor that the U.S. should extend additional humanitarian and military support to Ukraine.

“We must not pull our punches out of some fear of provoking Putin,” he said. “What will encourage Putin is if he senses American weakness.”

Read more: Russia Says U.S. Talks at Dead End, But Still Hopes for More 

Construction of the new pipeline is essentially complete, but Germany has yet to issue the certification required for it to begin operating.

©2022 Bloomberg L.P.