Spain’s government announced that it ordered Airbnb to block thousands of holiday listings on its website for violating rules.