he knew he was facing an incompetent petty adversary. so instead of preserving his ego - he damaged his instead of damaging Apple itself. that's a martyr like sacrifice.
has Tim Cook put company profits over the customer - yes. but has Tim Cook preserved apple's value & position yes when it could have been severely damaged by trump, YES.