I thought it was the Missouri Compromise of 1820 (repealed by 1857) that the Taney Court struck down in Dred Scott.
ff
I just checked and you are indeed correct. My brain goofed and forgot that there was the Missouri Compromise of 1820 and it’s odd that I only recalled Clay’s compromise of 1850 (which involved issues regarding western territory won after the Mexican-American War and Texas and slavery).