There are four possible courses of action, IMO:
1. We continue as things are -bombing. That will achieve little to nothing, aside from further destruction. It is highly unlikely that Iran will surrender under this scenario. It will just go on until we run out of bombs. Of course, this will also crash the world economy.
2. Declare victory and withdraw. He had a reasonably credible opportunity to do this earlier on. But idiot man-child naturally passed. Doing it now will look pathetic.
3. Put boots on the ground. This looks futile as well. In this scenario it's likely that we'll end up fighting a guerilla war, or worse, end up setting the ME on fire in earnest.
4. Use nuclear weapons. This will achieve even less than continued bombing and turn most of the world against us. It will give Putin cover to use nukes in Ukraine, too. Others nuclear nations may join the party, too.
5. Remove idiot man-child from office and proceed rationally to withdraw and apologize. It's virtually impossible that Republicans will do this.
Unless Iran decides to surrender soon, I suspect #3 above is most likely. I hope to hell #4 isn't selected by idiot man-child...but he's always wanted to use one.