Major stock indexes were little changed Tuesday as investors digested Iran war developments and the price of oil sank.