US stocks have opened lower as investors digested comments from President Donald Trump about the Iran conflict.