Ahead of Nvidia’s board of directors voting unanimously to reinstate CEO Jensen Huang less than two weeks after his ouster, President Donald Trump effectively gave them a major reprieve from some legal liabilities, one corporate governance expert said.

Trump told CNBC on Monday that Nvidia’s board “did ask for assurance on the national security threat,” seemingly referring to a White House guarantee that the board would be exempt from liability in an ongoing scandal over its former and current CEO’s embroilment in an international sex and espionage scandal. “And we gave them assurances at least with everything we know, and we know a lot.”

A White House spokesperson confirmed Trump’s role to Fortune: “President Trump was totally involved and this is a great decision by the NVIDIA board. We have to protect our geniuses.”

Huang, who cofounded the semiconductor chip giant 33 years ago, resigned earlier this month following revelations of an affair with a woman, Alice Huang, that U.S. intelligence that reportedly deemed a Chinese operative. Alice Huang is also an executive of Singapore-based cloud computing company Megaspeed, which is being investigated for allegedly smuggling at least $7.5 billion of Nvidia chips. The Nvidia CEO also faces allegations of affairs with Kimberly Powell, Nvidia’s vice president of health care, and a second unnamed Nvidia employee; it is unclear which scandal he resigned over, in fact.

Nvidia’s board reportedly met last Sunday night, just hours after Trump made a call on social media for Huang’s reinstatement.

Nvidia’s board may get a reprieve from some legal threats

Ann Lipton, a law professor at the University of Colorado, Boulder specializing in corporate governance, said Trump’s assurances over national security were likely one of the defining factors in the board’s decision to reinstate Huang, as it granted them a new level of legal protection.

“Once it became clear that the board was no longer going to be legally vulnerable, that’s when I think it became inevitable that this was going to play out,” Lipton told Fortune.

Nvidia’s board had no clear succession plan, and Huang had up to 60 direct reports, making it difficult to check the CEO’s authority, some experts warned. In its announcement of Huang’s reinstatement, Nvidia said it would hire a chief compliance officer, which the company has never had.

In September 2023, the Securities and Exchange Commission (SEC) concluded its probe into the company and filed financial reporting fraud charges against former CFO Christine B. Hoberg, claiming she had failed to report $3.3 million in expenses. The CFO paid a $672,000 settlement. In 2022, Nvidia paid the SEC $5.5 million in civil penalties over inadequate disclosures regarding how cryptocurrency mining bolstered its gaming GPU sales.

Nvidia has also previously been accused of using monopolistic tactics, including in 2021, when the Federal Trade Commission blocked the company’s attempt to purchase chip firm Arm. Now, in addition to the Department of Justice investigating Nvidia’s knowledge of Megaspeed’s alleged ship smuggling, it is also reportedly facing an SEC probe over any accounting irregularities and inadequate disclosures over questionable chip sales in Asia.

While loose board oversight works when stock prices are high, Lipton said, any legal scandal can put the board in jeopardy, which is what happened when news of Huang’s affair came to a head. Legal scandals don’t just put the company in jeopardy, but also the board personally. If the board hadn’t pushed Huang to resign earlier this month, they could have been held liable for a failure of oversight or acquiescing in securities fraud, according to Lipton.

“In that context, it may very well have seemed to the board like firing Huang and creating this internal investigation was really the only way that they could separate themselves from him,” she said.

While there was market pressure to rehire Huang—Nvidia’s stock fell 28% from Huang’s resignation through Friday’s market close—Trump’s assurances alleviated legal pressures put on the board, and the individuals on the board, not to reinstate him, Lipton explained.

“What the board would have been vulnerable to is essentially a claim that they fail to exercise proper oversight,” she said. “You can’t make that claim if the president of the United States is assuring you that there are no legal risks, even if something were to be uncovered, even if something were to be uncovered by a future administration.”

Nvidia did not immediately respond to Fortune’s request for comment.

The legal limitations of Trump’s assurances

Trump’s comments don’t guard Nvidia’s board from all legal risks, however. According to Jonathan Macey, a professor of corporate law, corporate finance and securities law at Yale Law School, while board members may not face criminal legal pressure, they are still vulnerable to civil risks for corporate governance failures.

Board members may still be subject to lawsuits filed by shareholders, as well as Congressional investigations, particularly after a Democratic midterm sweep. Senate minority leader Chuck Schumer signalled on Monday plans to probe parties involved in Huang’s reinstatement.

“Democrats will wield their full power to investigate any wrongdoing by the Trump Administration, Jensen Huang, other NVIDIA executives, and anyone selling out our national security for financial gain,” Schumer wrote on social media.

Trump’s comments about his role in reinstating Huang has raised speculation about the president’s plans to preemptively pardon the Nvidia CEO, but corporate governance experts agreed Trump pardoning Huang would not hold the same benefits for Nvidia’s board. A preemptive pardon—which the Trump administration has offered no public intentions of doing—would signal that there was a non-trivial possibility of Huang being in danger of a criminal conviction, which could mount even more pressure on the board as to why they reinstated him.

“All that does is mean that this guy probably did something really awful from a director’s point of view,” Macey told Fortune. “It makes it worse.”

This story was originally featured on Fortune.com