The deal comes as USPS looks to stabilize its finances after years of losses and declining mail volumes.