Spectral multipliers on 2-step groups: topological versus homogeneous dimension