After nearly 6 months without contract, ecomaine workers strike a contentious deal