What made it so the president could not remove federal officials from office?

Tenure of Office Act