Spanish parliament passes new laws limiting evictions but their duration depends on the upcoming snap election outcome.