There is an old military saying " to the victors belong the spoils." Spoil is another word for loot or prize. Why do you think the name spoils system was given to Jackson's practice of putting his supporters in office?
he was able to pass whatever he wanted, and so spoiled him. IN a sense, it means that he could do whatever he wanted, pass whatever he wanted, virtually eliminating any opposition