Wall Street ends higher following 7 straight weeks of losses