The roll out of the travel ban was botched by the Trump administration.  Executive orders of this magnitude need to be vetted with the agencies in charge of enforcement and people need to know that it is coming.  The idea that the ban needed to be kept secret to somehow keep terrorists from accelerating their travel plans to the US is facile.  Effective governance is about implementation and execution not just issuing orders.