Despite the establishment of the First Philippine Republic, Spain and the United States had sent commissioners to Paris to draw up the terms of the Treaty of Paris to end the Spanish–American War. The Filipino representative, Felipe Agoncillo, had been excluded from sessions as Aguinaldo's government was not recognized by the family of nations. Although there was substantial domestic opposition, the United States decided to annex the Philippines. In addition to Guam and Puerto Rico, Spain was forced in the negotiations to cede the Philippines to the U.S. in exchange for US$20,000,000.00. U.S. President McKinley justified the annexation of the Philippines by saying that it was "a gift from the gods" and that since "they were unfit for self-government, ... there was nothing left for us to do but to take them all, and to educate the Filipinos, and uplift and civilize and Christianize them", in spite of the Philippines having been already Christianized by the Spanish over the course of several centuries. The First Philippine Republic resisted the U.S. occupation, resulting in the Philippine–American War (1899–1913).