Mass. legislature votes to repeal pharma gift ban