The United States is discussing ways to end hostilities with Iran, even as President Trump continues to threaten attacks and as the Pentagon dispatches more troops.