Gay marriage has existed for as long as marriage has, it’s just best documented when it involves emperors.
https://en.m.wikipedia.org/wiki/Timeline_of_same-sex_marriag...
But you know what doesn’t have a long historical precedence? Automatic weapons, or protecting money as speech.