Will Ferrell donated a portion of his salary to Christina Applegate after ‘offensive’ Anchorman offer