How did the territory acquired by the United States at the end of the Mexican American War caused controversy in the United States?