Weak earnings drag down stocks, putting Wall Street on course for longest string of weekly declines since 2022