Spain's government has lost key votes on emergency measures to tackle the housing affordability crisis