Modeling BSM effects on the Higgs transverse-momentum spectrum in an EFT approach