Robert F. Kennedy Jr. spent his career as an environmental lawyer and vaccine-skeptical activist before entering politics.