Laws have always regulated who may marry, the obligations related to marriage and children and whether and how a marriage can be ended. Governments have always put their own social agenda above the pluralism of personal choice. Never in history have governments considered marital relations strictly private.
In the U.S. tax code, hundreds of assumptions and provisions are based on the definition of marriage. And many more are found in federal entitlement programs, immigration laws and social benefits.