The president has had mixed messages about how and when the U.S.-Israel-led war in Iran will end.