NVIDIA shares rose 31% after the board reinstated Jensen Huang as chief executive, following controversy over his alleged relationships and reported intervention by Donald Trump.