Strictly speaking, it was, since we never actually declared war on Iraq. Which only makes the whole tragedy a more egregious violation.
Declaring war isn't... Really a thing. Since around WWII. Acknowledging a war has happened, is what the notification to Congress is, and that happened.