Nuclear Modification of Transverse Momentum Dependent Parton Distribution Functions by a Global QCD Analysis