Official who once called Obama a ‘terrorist leader’ takes over Pentagon policy