A Superior Court judge allowed Gov. Charlie Baker’s ban on the retail sale of vaping products to remain in place.