Bernard Looney, who once called the oil firm a “cash machine”, has seen profits jump on soaring prices.