The bill, brokered by the late Republican Senator Lindsey Graham, targets India, China, Slovakia, Hungary and Azerbaijan—the five largest buyers of Russian oil.