The U.S. has little leverage to prevent the Nord Stream 2 gas pipeline project between Russia and Germany from being completed, two administration officials said, acknowledging the failure of a yearslong effort to head off what officials believe is a threat to European security.

The massive $11 billion project is just weeks away from completion and has led President Donald Trump to call Germany “a captive to Russia.” He has criticized the European Union for not doing more to diversify imports away from the nation that supplies more than a third of its gas.

Senior U.S. administration officials, who asked not to be identified discussing the administration’s take on the project, said sanctions that passed Congress on Tuesday as part of a defense bill are too late to have any effect. The U.S. instead will try to impose costs on other Russian energy projects, one of the officials added.

The admission is a rare concession on what had been a top foreign-policy priority for the Trump administration and highlights how European allies such as Germany have been impervious to American pressure to abandon the pipeline. It also shows how the U.S. has struggled to deter Russia from flexing its muscles on issues ranging from energy to Ukraine to election interference.

“It has been a commercial project, but with a huge geopolitical dimension attached to that,” Peter Beyer, who is German Chancellor Angela Merkel’s trans-Atlantic policy coordinator, said Wednesday. “I’m expecting that the sanctions, if Donald Trump is going to sign that bill, will not have a big effect on that project.”

The administration is hoping to sharpen its focus on Russia when Deputy Secretary of State John Sullivan, who was confirmed as ambassador to the country last week, heads to Moscow next month. The post has been vacant since early October, when former envoy Jon Huntsman stepped down, and ties between the two countries have only continued to sour.

On a visit to Poland in February, Secretary of State Michael Pompeo said the Nord Stream 2 project “funnels money to Russians in ways that undermine European national security.”

Some 350 companies are involved in building the undersea link, most notably the Swiss company Allseas Group SA, whose ships are laying the last section of pipe in Danish waters.

The sanctions target vessels that lay the pipeline as well as executives from companies linked to those ships. They could be denied visas and have transactions related to their U.S.-based property or interests blocked.

The sanctions bill includes a 30-day “wind-down period” that allows targeted companies to halt their operations after the law comes into effect. That could give Russian energy company Gazprom PJSC, the project leader, just enough time to finish work.

The last section of pipe can be completed by about Jan. 11, well before the end of the period, according to Anna Borisova, an analyst at BloombergNEF in London. Nord Stream 2 will be in a position to be commissioned between April and June 2020, after additional connection work and testing, she said.

“The project seems safe,” Borisova said. “We don’t see major risks.”

The new pipeline is set to ship as much as 55 billion cubic meters of Russian gas annually directly to Germany, doubling capacities of the existing Nord Stream link.