The bipartisan legislation, championed by the late Sen. Lindsey Graham, would penalize countries that continue to buy Russian oil, gas and other exports that fund the Ukraine war.