How did Congress attempt to maintain a balance of power between Northern and Southern states in the mid-1800s?