The moderate conservative Republican became a key swing vote in many cases, including decisions that upheld women’s rights.