Nvidia shares fell on Tuesday as US politicians questioned President Donald Trump's role in the return of Jensen Huang as chief executive.

Huang was reinstated as CEO on Monday, less than two weeks after he resigned following revelations of extramarital affairs. One of those affairs was reportedly with a suspected Chinese spy.

Trump said he played a big role in the reinstatement. "They did ask for assurance on the national security threat," Trump told CNBC. "And we gave them assurances at least with everything we know. And we know a lot."

Nvidia's share price was down almost 8% on Tuesday. It still remained well above Friday's closing level, before Huang's return was revealed. Rival AMD fell more than 10%, and Broadcom and Marvell Technology also declined.

Nvidia's board said it had received input from senior levels of the US government and was confident Huang's reinstatement posed no national security risk. Board chairman Harvey Jones said the decision was in the "best interests of our stockholders, employees, partners and customers."

Republican representative Don Bacon said Nvidia should have "ignored the Administration's inexplicable desire to save Huang." Republican senator Pete Ricketts said Huang's behavior "doesn't absolve Nvidia of answering for national security concerns and unaccounted-for chips."

Democratic representative Robert Garcia, the incoming chairman of the House oversight committee, said Trump's "direct involvement" with Nvidia's decision "raises serious national security and corruption questions." Democratic senator Ruben Gallego said Congress needed to "investigate what stock positions took place before the announcement."

Huang is scheduled to appear before Congress next week to be questioned about his relationship with Alice Huang, who is alleged to be a spy for China. Alice Huang is not related to Jensen Huang. China has denied the spying allegations.

The US Commerce Department said it was preparing to blacklist Megaspeed, a Singapore-based Nvidia customer where Alice Huang was chief executive.