when did the united states gain control of the philippines