How did the spoils system impact the political landscape of the United States during the 19th century?