The president would have likely "gotten very upset" had a Democrat done it, the New York Times journalist told CNN's Anderson Cooper.