Rejecting pact with Iran will lead to war: Obama