Spain Moves to Legalize Hundreds of Thousands of Undocumented Residents