With the defeat of the Confederacy in 1865, the Reconstruction Era began. When did white Democrats regain control of the state legislature