After the last Federal troops were pulled out of the South in 1877, what became of the political situation?​