The Chinese social-media company reported an operating profit of more than $20 billion as its valuation fell by about 26%.