The confusion arises because the antecedent of "it" is unclear.
I read "it" as referring to "gay marriage" and not "the case against gay marriage". How confusing.