National Enquirer publisher David Pecker has been granted immunity by federal prosecutors in their investigation into Michael Cohen, a person with knowledge of the matter told NBC News on Thursday.