Apple CEO Tim Cook set the record straight on his relationship with the Trump administration — and put to rest questions about his future at the company.