why did republicans lose power during the 1870s