Spectral multipliers for sub-Laplacians on solvable extensions of stratified groups