US stocks end in red amid Iran war uncertainty