Wall Street traders left stocks wavering as President Donald Trump complained about Iran leaking terms of a deal to end their war.