US President Donald Trump has praised the decision of chip-maker Nvidia to reinstate Jensen Huang as the company's chief executive.