This is a very unusual word with two contradictory meanings.
To "sanction" can mean to endorse, to ratify or to approve but confusingly, it can also mean to punish.
The "sanction" of a crime refers to the actual punishment, usually expressed as a fine or jail term.