State senator who fought recent bill says he's gay