This can't be legislated in the courts. Even if it goes to SCOTUS, a new law can be passed to get around any SCOTUS ruling. That's always been the case; court victories are short lived without support from the legislature.Of course. A 3 judge panel (which 3 robes... ) have blocked the order.
Edit. Here they are..... Barry G. Silverman, a Clinton appointee, Jacqueline Nguyen, an Obama appointee, and Ryan D. Nelson, a Trump appointee.