The U.S. president called for Tehran to surrender in a war that has become a growing political burden.