Engie swung to net profit in the first half and raised its full-year outlook as the market environment returns to normal.