S&P 500 climbs 0.8% as SaaS stocks lead tech rally