A homeland security official said it was “contrary to our national interest to allow Syrians to remain in our country.”