You need to bone up on the Constitution. States that legalize pot are asserting their 10th Amendment powers and should be supported, even if you don’t like the policy.
OTOH, sanctuary cities and states are in violation of powers delegated by the Constitution to the United States, ie control of immigration and borders.
SUPREMACY OF THE NATIONAL GOVERNMENT
[2] This Constitution, and the Laws of the United States which shall be made in Pursuance thereof; and all Treaties made, or which shall be made, under the Authority of the United States, shall be the supreme Law of the Land; and the Judges in every State shall be bound thereby, any Thing in the Constitution or Laws of any State to the Contrary notwithstanding.