The plan, which could see 500,000 people apply, makes Spain an outlier as anti-immigration sentiments fester in Europe.