Intel Corp.’s stock rallied to close higher in the last minutes of trading Thursday after the chip maker unexpectedly released quarterly results before the end of the trading session, but the stock retreated in extended trading as the company addressed long-range plans.