Unionized Stop & Shop workers in Massachusetts, Connecticut and Rhode Island have gained raises with no increase in their health-care cost after ratifying a new four-year contract.