The US Senate has approved a major sanctions bill that gives the president power to place heavy tariffs on countries buying Russian oil and gas.