The economy expanded by 0.3% in the April-to-June period, ahead of economists’ expectations.