It's a loss for the US. That's not equivalent to a win for Iran... both sides can and frequently do lose in wars.