Yes, I think you're right. "sanction" is a strange word in English with two almost opposite meanings. You just have to figure out from the context which one is meant.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.