American Media Inc., parent company of the National Enquirer, struck a deal to sell the tabloid and two other publications.