The president’s legacy depends on a clear victory in Iran.