Spain passed 21 housing measures after tends of thousands protested the country's housing affordability crisis and ahead of snap elections