Even before the Supreme Court declared same-sex marriage a constitutional right last week, there was an aura of inevitability about the outcome that would have been hard to anticipate just seven years ago.