Spectral multipliers on Heisenberg-Reiter and related groups