In legal terminology, a sanction is a penalty or other type of enforcement used to bring about compliance with the law or with rules and regulations.
This term can sometimes confuse people because it can also be used as a verb to reflect an official endorsement, as in "it was an officially sanctioned event."