In short, Art of the Deal.
He got McCarthy to give up Pelosi’s damning emails in exchange for his endorsement.
Bingo!