The deal aimed to relocate thousands of Eritreans and Sudanese to Europe and beyond.