Lattice-QCD Calculations of TMD Soft Function Through Large-Momentum Effective Theory