Ultimately, the state doesn't give a shit if gays can get married or not, and fighting that battle is a lot easier once you get the population on your side - the state's position being basically that it will do whatever the population wants.
However you could have literally every single citizen outside of government, the bureaucracy, and the sociopaths set up to control both, opposed to the kind of surveillance Dropbox facilitates, and the state would still fight tooth-and-nail for it.
It's really a case of cowards picking their battles, and piling on when it's convenient.