Donald Trump snagged a victory Tuesday in the ongoing legal battle over Trump University, when a federal judge denied a request to release Trump's video depositions.

Several media organizations had sought the videos because of a high level of public interest in the two class action lawsuits that say the defunct educational institution bearing Trump's name defrauded students.

U.S. District Judge Gonzalo Curiel — the same judge Trump pegged as biased because of his Mexican heritage — said that while there is a "degree of legitimate public interest" in the videos, he rejected the request because of his fear that they could impair "judicial efficiency."

The ruling saves the Republican nominee the trouble of having potentially embarrassing videotaped testimony go public, which could have been used against him as he faces a tough 2016 election battle against Hillary Clinton.

In a second ruling on Tuesday, Curiel rejected Trump's push to have one of the cases, a racketeering lawsuit, thrown out.