The air campaign against Gaddafi was authorized by the UN Security Council with no votes against. While deposing a former client was a terrible idea, your question isn't a gotcha.
Reply on news.ycombinator.com