Halliburton’s stock gains after profit more than doubled and beat expectations, even as the Middle East conflict took a bite out of the oil-services giant’s results.