The S&P 500 and Nasdaq were on course for their worst weekly performances in over a year. Anthropic’s shares tumbled, part of a tech sell-off.