UN questions legality of controversial EU-Turkey migration deal