Seems like a legal slight-of-hand, and also unjust and unethical and absolutely ripe for government abuse.
He was punished for the crime of attempting or conspiring to commit murder. Without ever having been found guilty in a trial by jury of his peers determining beyond reasonable doubt that the facts met said crime.