The S&P 500 rose over the week even as 30-year Treasury yields hovered near their highest since 2004.