President meanders through hourlong stemwinder in effort to justify war as White House confirms text of deal to release billions of frozen Iranian funds