US stocks end lower as oil jumps on Iran uncertainty, chipmakers slide