The move also underscored the power of the charitable foundations that hold sway over some of Denmark’s biggest and most successful businesses, including brewer Carlsberg A/S, shipping giant A.P.