Over a million undocumented migrants in Spain applied for residency, fearing the loss of work permits after the recent election. Rights groups warn this could negatively impact the economy.