Department of Homeland Security staff, the officials said, were only allowed to see the order barring refugees from the US after Trump signed it, and National Security Council lawyers were prevented from evaluating it.