Wall Street Gains End Weekly Loss Amid Stable Data