The move allows hundreds of thousands of people from Sudan, Ukraine and Venezuela to stay in the country temporarily.