Society has a pretty clear interest in both procreation and healthy raising of children. Whether encouraging marriage is the best way to accomplish those goals is a reasonable question, but it's not obviously an invalid approach, either.
Not sure where you are located but where I live a Civil Union is just as risky as a marriage, in terms of finances, mostly for men (though obviously not always) in terms of support payments for a former spouse without the tax benefits.