How long before it is also struck down by a federal judge?
You mean "How long before Trump goes on a Twitter tirade about how judges are threatening national security?"
EDIT: But then this is of course the old trick: propose something really outrageous so that your follow-up looks reasonable. (You see the same thing with abortion; for instance, in Ohio, Kasich vetoed a bill that would have banned it after about six weeks so that he could look reasonable signing a twenty-week ban.)
Failing that, of course, you just keep signing slightly modified versions of the same thing to overwhelm the courts.