The powerful stock-market rally took a breather on Wednesday after a solid stretch of gains. As of the closing bell, the S&P 500 had wiped out its advance from earlier in the week, placing a lengthy weekly winning streak in jeopardy.