Carl Gustaf Leijonhufvud (1824-1905), baron, chancellor of justice