What gave the western territories the right to vote to enter the Union as free states or as a slave state?