Trump's lawyers will handle any legal actions against the judge...not Trump.
I agree he is testing the political waters to see how far these attacks will play. Trump may be on stronger legal footing after the election assuming he wins and immigration are being taken that are being actively opposed by La Raza.