Shell’s earnings comfortably beat market expectations last quarter as higher volumes at its integrated gas business helped offset a slump in refining margins and lower oil prices.