You could bring that up at any Criminal or Civil proceeding but fact remains you took something that did not belong to you! Yes its unfair but what else can you do. You could sue the foreman who told you to do with it as you will. In meantime might be best to settle with your company and deal with repayment in civil court when you sue foreman.

