Yes but California decided they didnt want gay marriage and a court over turned it and SCOTUS allowed that court decision to stand, and to me that isn’t the people of the state getting to decide.
Fixed it. There is a difference.
"We have never before upheld the standing of a private party to defend the constitutionality of a state statute when state officials have chosen not to, Chief Justice John Roberts wrote in the majority opinion. We decline to do so for the first time here.[1]