The definition of Militia when the 2nd amendment was written was "every able bodied male of the age of consent" in modern day terms everyone is part of the Militia.
Marriage was originally religious in nature. Government co opted it and tried to turn it secular. We reject that. Government contracts are not marriage.