In politics and government, a spoils system (also known as a patronage system) is a practice in which a political party, after winning an election, gives government jobs to its supporters, friends (cronyism), and relatives (nepotism) as a reward for working toward victory, and as an incentive to keep working for the party. It contrasts with a merit system, where offices are awarded or promoted based on a measure of merit, independent of political activity."
https://en.wikipedia.org/wiki/Spoils_system