Mr. Trump correctly noted that the man accused of killing eight people in a terrorist attack in October in New York entered the United States from Uzbekistan through the diversity immigration visa program.