Ms. Haley said the United States would never close its doors to foreigners who flee persecution, even as she defended the Trump administration’s travel ban, which closed the door to refugees from six war-torn, mainly Muslim nations.