Supreme Court Justice Elena Kagan warns AI-powered gerrymandering could undermine US democracy