US stocks end mixed; Nasdaq drops