Over her career as a prosecutor and a senator, Harris tested the limits of the First Amendment and sparred with originalists.