The US Senate voted nearly unanimously on Thursday for legislation to impose new sanctions on Russia and force President Donald Trump to get Congress’ approval before easing any existing sanctions on Russia, Reuters reports.

In a move that could complicate President Donald Trump’s desire for warmer relations with Moscow, the Senate backed the measure by 98-2. Republican Senator Rand Paul and Bernie Sanders, an independent who caucuses with the Democrats, were the only two “no” votes.

The measure is intended to “punish Russia for meddling in the 2016 U.S. election, its annexation of Ukraine’s Crimea region and support for Syria’s government in the six-year-long civil war”.

If passed in the House of Representatives and signed into law by Trump, it would put into law sanctions previously established via former President Barack Obama’s executive orders, including some on Russian energy projects. The legislation also allows new sanctions on Russian mining, metals, shipping and railways and targets Russians guilty of conducting cyber attacks or supplying weapons to Syria’s government.

“The legislation sends a very, very strong signal to Russia, the nefarious activities they’ve been involved in,” Senator Bob Corker, the Republican chairman of the Senate Foreign Relations Committee, said as lawmakers debated the measure.

If the measure became law, it could complicate relations with some countries in Europe. Germany and Austria said the new punitive measures could expose European companies involved in projects in Russia to fines.

The legislation sets up a review process that would require Trump to get Congress’ approval before taking any action to ease, suspend or lift any sanctions on Russia.

Putin dismissed the proposed sanctions, saying they reflected an internal political struggle in the United States, and that Washington’s policy of imposing sanctions on Moscow had always been to try to contain Russia.

The bill also includes new sanctions on Iran over its ballistic missile program and other activities not related to the international nuclear agreement reached with the United States and other world powers.

The Senate also voted overwhelmingly on Thursday to add provisions to the bill allowing the U.S. space agency NASA to continue using Russian-made rocket engines.