The move will end the restriction Donald Trump imposed on immigration to the US from some Muslim-majority countries while he was in office.