David Pecker, a longtime Trump ally, was granted immunity by federal prosecutors in exchange for information about Michael Cohen.