But it is the job of the government to protect the minority from the votes of the majority. Lets vote and say people with blue eyes can't marry and say that somehow it passes it is then the governments job through the courts to say this is ridiculous. But you seem indicate through your posts that oh well the people voted. The American Constitution was based on the idea that the dirty masses were not quite smart enough to be really in charge of decision making.
Those laws are based on morality as had been handed down by religion, which incorporated a set of rules that helped society stay together in a supernatural form of government. We are beyond this and a lot those are good and need to be controlled by law. But 2 people regardless of gender to form a union with legal rights is not one of them and the government other than recognizing that a union has occurred between 2, or if you want more should have no say.
Example the Courts to balance the power of Congress and the President, to decide what these same people do with their votes as it impedes others and to make official interpretations. Another would be the Electoral College, you can can vote for the group of people who will actually vote, not for them directly in case they make some serious blunder.