A politician voting for a bill is legal. Giving money to a politician is legal. But giving money to a politician so he'll vote for a bill is not legal.