Legislature votes to repeal HB2