That's how this will likely turn out.
Trump will, of course, appeal. The SCOTUS will overturn this. Then the Republicans will beat the Democrats over the head with it. The public will see the childishness of it all and give the Republicans the next term. It may even help grow the Republican majorities in the mid-terms.