US president facing competing urges of keeping up pressure on Tehran to negotiate while deterring any further Iranian attacks and avoiding another Middle East war