Philippines reverses decision to end military troop pact with US