Trump's lawyers argue that punishing the current Republican nominee in the thick of the campaign to retake the White House would amount to election interference.
Basically if Mr Trump wins then the case just sorta "goes away". If he loses then the book probably gets thrown at him. I think the judge did it because he doesn't want the guaranteed retaliation if Trump wins.