The United States gained control over the Philippines as a result of