More than one million undocumented migrants and asylum seekers have applied for legal residency under Spain's mass regularisation programme, marking a significant response to one of Europe's largest immigration initiatives.