Nvidia Corp. shares closed higher after a Thursday rally as more than half the analysts who cover the chip maker hiked their price targets following the company’s record quarter and forecast for more new highs based on data-center gains.