GDP contracted 0.2% in the second quarter as manufacturing and mining weakened and the Iran war added to economic pressures.