The answer is selective incorporation
This is a constitutional principle that ensures that states cannot pass legislation that would deny people their constitutional rights as enshrined in the Bill of Rights. This is accomplished through the capacity of the federal government to limit state powers