This is now the most common sense of the term, largely displacing the older term, logrolling.
In a further development of meaning, horse trading has come to refer specifically to political vote trading.