The layoffs come just a few years after the California-based pharmaceutical company kicked off an expansion in New England.