US stocks end lower amid Iran war, Trump's Hormuz protection pledge