While the US did not declare war, they did cover their ass by giving public notice of hostilities. Vietnam, for example, was supposedly an internal police action to aid an Ally, a weak justification given how much bombing occurred in the North, but probably sufficient.
The same with Iraq; 1991...