There was some uncertainty about whether Trump would sign the bill, mostly because it included a provision that prevents him from nixing those penalties.
But even if Trump had vetoed the bill, it would have been purely symbolic. Both the House and Senate easily had the votes to override it.
Some lawmakers are concerned about Trump's relationship with Russian President Vladimir Putin. Intelligence agencies determined Putin ordered the 2016 election meddling. Trump has repeatedly praised Putin and said he wanted to patch up U.S.-Russia relations.
In retaliation for the bill, Russia said it would boot American diplomats from the country and seize recreation areas those diplomats used.