The aim was to swiftly block travelers and refugees while creating a stringent new vetting process to screen non-citizens from seven countries, and especially Muslims, who might pose U.S. security hazards.