‘A very important step’: Spain's move to end legal limbo for migrants