Europe's plans to outsource asylum applications to curb the influx of migrants come up against major legal obstacles.