Did the War With Iran Backfire on United States?

After 40 days of war and a fragile ceasefire, a critical question emerges:

Did the conflict actually worsen the situation for the United States while strengthening Iran?