Both parties have tried to undermine the courts at times in the past. But Trump’s attacks are in some ways unprecedented.