The order, which goes into effect on Monday, will bar citizens from 12 countries from traveling to the United States. Visas will be restricted for citizens of seven other countries.