Senate votes to save much of surplus for a rainy day