The Senate on Friday passed sweeping legislation to sanction Russia and impose tariffs on countries purchasing oil and gas from the Kremlin that are helping finance its war against Ukraine.