The Chinese social media giant reverses a ban on gay content after a wave of defiant protests.