The leading priests and the teachers of the law were the human means by which God’s plan was carried out through their hatred of Jesus.
The Jewish leaders did not have authority to carry out capital punishment (the death penalty) under Roman rule (John 18:31). So they handed Jesus over to the Romans, who carried out the execution.