Jesus was brought to the council for an unjust trial that would condemn him to death. A death that legally could not be justified, but one that was birthed from THEIR own unbelief. They did not believe him when he said he was the Christ.
Do I distance myself from God when I lack understanding? Do I put him on trial when he won't bend to my will? And when I commit such acts, what happens next?
Peter denied Jesus moments after he vowed he wouldn't. Through grace he was able to see what he had done, really done, and by that same grace, he was able to accept himself as he was, and he wept.
So what do we do after we find betrayal in our hearts? We weep. We repent. We let godly sorrow lead us back to him, and we pray continually that God will show us truth, and enable us to be humble, because that is what will truly change us.