The idea in this gospel is that Jesus, like all of us, is a trapped spirit, who is trapped in a material body. And salvation comes when we escape the materiality of our existence, and Judas is the one who makes it possible for him to escape by allowing for his body to be killed.

Bart Ehrman