There was little doubt going into the war that America’s armed forces could beat Iran’s. The question was at what cost – and to what end?