US stock market ends lower except Nasdaq