Yes, the UK went to war to repel invasion of its territorial soil - even though ownership is in dispute. We also went war in 1991 to repel an unlawful invasion of an ally.
But GW2 and Afghanistan have had about as much legitimacy and success as did the US war in Viet Nam.
As for Syria, why isn't Obama pressing for all-party talks at the UN?