Stock market today: Wall Street shaves off some losses to close its worst week in the last 10