Spectral multiplier theorems of Euclidean type on new classes of two-step stratified groups