I would say Judas was given Jesus for the divine purpose of insuring Jesus be crucified.
Jesus knew Satan possessed Judas. Which is why he said,though it reads as this in our English translations as,"one of you is a devil." Which is our other name for Satan.
Satan and the Antichrist are known as son of perdition.
If not for Judas,how would Jesus be sacrificed for the sins of God's Elect?