What three territories did the United States gain after the Spanish-American War? Why was there debate over the treaty in the United States