US stocks have opened slightly higher as investors monitored developments in the Middle East and hoped for signs the war was easing.