Assad violated the Chemical Weapons Convention.
And, yes. We can retaliate on behalf of a third party. Suppose he had attacked a hundred or so miles away—Israel.
Suppose he had? That would still, in my opinion, call for the term "intervene" rather than "retaliate."