The spoils system

the theory or practice of regarding public offices and their emoluments as so much plunder to be distributed among their active partisans by those who are chosen to responsible offices of administration.

See also: Spoil