The Philippine economy unexpectedly slowed to 2.3% in the second quarter, as the protracted Middle East conflict pushed up inflation and dragged down consumer spending and investment.