A child born of parents who at any time prior or subsequent to the birth of said child shall have entered into a ceremonial marriage shall be deemed the legitimate child of both parents for all purposes of this article regardless of the validity of such marriage.
N.Y. Family Court Law § 417