The U.S. Senate voted nearly unanimously on Thursday to slap new sanctions on Russia despite President Donald Trump's objections to the legislation, which has angered Russian President Vladimir Putin, who threatened to retaliate.

The Senate backed the measure, which also imposes sanctions on Iran and North Korea, by a margin of 98-2 with strong support from Trump's fellow Republicans as well as Democrats. The bill will now be sent to the White House for Trump to sign into law or veto.

The bill is the first major foreign policy legislation approved by Congress under Trump, who has struggled to advance his domestic agenda despite Republicans controlling the Senate and House of Representatives.