The Instagram and Facebook parent company spent $24.4 million on lobbying last year as lawmakers banned its rival TikTok.