The answer would be C.
The Compromise of 1877, settled the intensely disputed 1876 presidential election. It resulted in the United States federal government pulling the last troops out of the South, and formally ending the Reconstruction Era.
The Democrats held the majority of the seats in the house and senate.