His temporary ban on refugees and travelers from seven Muslim-majority countries, aimed at reviewing screening procedures to lessen the threat of extremist attacks, has caused consternation around the world.