How did Congress solve the slavery issues as they continued to expand and acquire the territory of Texas and Oregon?