Elon Musk attacked the courts. Now they’re his best hope against Trump.