Tuesday night’s debate was the first for Republicans since the attacks in Paris and San Bernardino, California, which heightened fears of terrorism in the United States.