We
don't know what deals Cook and Trump have made with each other, we've just seen the byproduct of their relations on the political stage. Nothing Cook did during his tenure de-risked Apple from the consequences of a worsening political state in the US. When the tides turn towards authoritarianism, Apple turns towards compliance. They've done it for both Trump admins.
Cynically speaking, Cook is wise to keep the DEI and climate commitments as bartering chits for Apple's next leadership to forfeit. He knows that Apple needs leverage to get their druthers from the Fed.