A United States Senate committee passed a bill on Wednesday to slap sanctions on companies and individuals involved in building Nord Stream 2, a gas pipeline that will move gas from Russia to Germany. The Trump administration says this particular pipeline would strengthen Moscow’s economic grip on Europe.

The Senate Foreign Relations Committee passed the “Protecting Europe’s Energy Security Act,” by a vote of 20 to 2. The bill, which reflects some legislators’ concerns over Russian influence in Europe, still needs to pass the full US Senate, US House of Representatives and be signed by President Donald Trump into law. The same Senate committee is also prepared to take action against Russia for its aggression against Ukraine and meddling in US elections.

A companion bill passed the House Foreign Affairs Committee last month.

“Russia has a history of using energy as a weapon,” said Republican Senator Ted Cruz, one of the measure’s sponsors.

The Nord Stream 2 project, which has mostly been completed, is led by the Russian state-owned gas company Gazprom. Half of the project’s funding is provided by Germany’s Uniper and BASF’s Wintershall unit, Anglo-Dutch firm Shell, Austria’s OMV and France’s Engie.

The sanctions could also affect other Russian natural gas export pipelines, including the TurkStream project, a new export gas pipeline that stretches from Russia to Turkey across the Black Sea.

Cruz’s bill is one of a handful in Congress looking to impose sanctions on the project. The measure would penalise ships that lay Russian energy export pipelines at depths of 100 feet (30 metres) or more below sea level, a stipulation that could also apply to the TurkStream gas pipeline.

Republican Senator Rand Paul and Democratic Senator Tom Udall were the panel members who voted against the bill. Paul complained that it sanctioned US allies and harmed international companies that employ thousands of Americans. The bill’s backers disputed this.

“It makes no sense to hurt people that are helping us apply pressure on Russia and in other areas,” Paul said.

Senator Bob Menendez, the panel’s top Democrat, said he backed the bill, but that it was important to reinforce US ties with Berlin. Germany says Nord Stream is important to its economy, Europe’s largest, and opposes sanctions on the commercial project.

Republican Senator Jim Risch, committee chairman, said the panel would also consider another bill, the bipartisan Defending American Security from Kremlin Aggression Act (DASKA), although the timing was not clear.

That bill would impose stiff sanctions on Russia over its meddling in US elections and aggression against Ukraine. One sponsor, Republican Senator Lindsey Graham, has called it the “sanctions bill from hell.”

DASKA would impose strict measures on Russia’s oil and gas sector, which contributes to about 40 percent of Moscow’s revenues. It would also sanction individuals who provide goods, services or financing to support the development of crude oil in the country as well as Russian state-owned energy ventures outside of Russia, including investments in liquefied natural gas projects.