Spain's migrant amnesty program signals economic pragmatism.