Some worker protections have been secured as have five-year assurances on Royal Mail's headquarters and tax residency.