US president Donald Trump has signed a revised travel ban which will temporarily halt entry to the US for people from six Muslim-majority nations who are seeking new visas.