The Spanish government imposed the measures despite opposition from most of Spain’s autonomous regions