WhatsApp called a California lawsuit that alleged staff could read user messages “frivolous” and said it would seek sanctions against the firm’s attorneys.