The spoils system affected President James Garfield and his successor Chester A. Arthur by leading to political corruption and the assassination of Garfield due to his appointment of reform-minded politicians, and later causing Arthur to pass the Pendleton Civil Service Act in an attempt to reduce the influence of the spoils system.
Can you write it a different way
The spoils system had a significant impact on President James Garfield and his successor Chester A. Arthur. The system's reliance on political patronage and corruption led to Garfield's assassination by a disappointed office-seeker, while Arthur, inspired by this tragedy, pushed for reforms such as the Pendleton Civil Service Act to reduce the influence of the spoils system on government appointments.