Updated

WASHINGTON (AP) -- A frequently polarized Senate has found common ground as Republicans and Democrats joined forces to approve a sweeping sanctions bill that uses an array of financial penalties to punish Iran and Russia.

The bipartisan legislation passed overwhelmingly Thursday, 98-2.

The bill penalizes Moscow for interfering in the 2016 election by imposing sanctions on key sectors of Russia's economy, including mining, metals, shipping and railways. Individuals who carried out cyber attacks on behalf of the Russian government are also targeted.

The Senate legislation imposes sanctions on people involved in Iran's ballistic missile program and anyone who does business with them. The measure also applies terrorism sanctions to Tehran's Revolutionary Guards and requires the enforcement of an arms embargo.

Senators say the bill won't impede enforcement of the nuclear agreement with Iran.