Non-resettling EU states to face legal challenge