Shell reported $9.84bn Q2 profit as Middle East conflict cut production but fuelled trading gains, with revenue up 45% and gas output nearly halved.