Plan would be tantamount to blanket return of foreigners to third country, which is not consistent with law, UNHCR says.