The tech company vowed to fight any legal challenge after the U.S. government and nearly every state sued to force a sale of Instagram and WhatsApp.