US stocks end higher but Wall Street closes out losing week amid interest rate concerns