The president has crowed about the billions of dollars collected so far from tariffs. That money could be at risk if the White House loses the legal battle.