A reported attempt to restore the actor’s gun rights reflects how the president views his celebrity friends and foes.