Trump will prevail.  His executive order is legal... period.  Appeal court used his statements during the campaign as evidence of his intent.  The President has access to classified information that the courts are not privy to.  That's why the law gives the President broad powers to set immigration policy.  The courts have devolved to the point where they are now psychics who divine what's in people's hearts and minds and make their ruling accordingly.  It would be funny if it wasn't so scary.