Thousands marched in the capital, Madrid, and over 30 other cities in a demonstration organized by housing activists and backed by Spain’s main labor unions.