What Did The Republicans Gain After 1877