A unit of Dell Technologies Inc. won a $9.7 billion contract to help the US military handle its licenses for Microsoft Corp.