US stocks end mostly higher as chipmakers rebound, Iran halts attacks against Israel