The deal includes a 54,000-square-foot facility in Amesbury and is now pending regulatory approval.