The majority of the Supreme Court justices said the federal government had to recognize the legitimacy of gay marriages for the purpose of assigning federal benefits. The dissent argued the matter should be left to the political process at the state level: state legislatures or the people through the initiative process. Both are wrong.
Abraham Lincoln once observed, regarding slavery, that it is either right or wrong; if wrong, which he believed it was, it could not be made right by a court, a Congress, a state or the people.
Gay marriage is wrong by nature, and cannot be made right by a court, a Congress, a state legislature or a majority of the people. The only solution is for the Constitution to reflect, through a constitutional amendment, that marriage, by nature, can only be between one man and one woman.
From a policy perspective, the gay community may have it right: Government benefits ought not to be provided to one group and not the other on the basis of marital status. This would even apply those who are single, but are not gay. However, a better policy solution would be to repeal federal benefits based on marital status.