Hillary Clinton applauded the Supreme Court ruling that legalizes gay marriage nationwide, putting out a statement Friday praising the gay rights activists who “sacrificed so much for this victory.”

Yet it wasn’t so long ago that these same activists might have seen Mrs. Clinton as an adversary on the issue.

For most of her career in politics...