Plenty of counter-examples, too. WWII. South Korea. Potentially Venezuela, mostly because we constrained our objectives.
I also don’t think it’s fair to constrain OP’s statement to “the people in those countries.” Regional impacts matter, too. An Iran that isn’t funding terrorist proxies everywhere could still be a net positive even if the average Iranian is no better off afterwards. (To be clear, I’m in no way supporting this stupid war.)