The White House said the action was needed to protect the United States from terrorist attacks and other national security threats, and said the countries lacked screening and vetting capabilities.