Microsoft’s 20-year deal is a first of its kind for the software maker.