God knew that Christ would be betrayed and handed over to lawless men. It was part of His pre-ordained Salvation Plan. It was a betrayal that worked out for God’s purpose in the end…
Christ was betrayed because of our offences. He was sent to the Cross and He became sin for us, carrying our sins upon His shoulders.
It all started with Christ’s death and it was perfected in His resurrection. In His death, He paid our debt, freeing us from the guilt and punishment of sin. Those in Christ are made just by Christ. He is our justification and salvation.