Dow Jones, S&P 500 post losses for 2nd consecutive week