Spain is offering year-long residence and work permits to 25,000 migrants affected by last year’s devastating Valencia floods.