The harm is happening in the US, to WhatsApp's customers (among other places). The US court has jurisdiction.
Whether any remedy could be applied is independent of the court's findings.