S&P 500 ends down slightly; investors await Friday’s payrolls