May came under pressure to cancel the visit after Trump issued an executive order barring Syrian refugees from the United States and suspending travel from seven Muslim-majority countries, stirring protests at home and abroad.