A regulatory filing reveals how Omnicom and Interpublic Group of Cos. agreed on their deal, which would create the world’s largest ad agency group.