Thousands march to protest anti-union legislation