A sell-off in giant technology companies dragged down stocks, while the latest economic data gave support to the Federal Reserve’s cautious stance on rate cuts.