Maybe this was what you were thinking of?
That is closer than I was with the national bank:
Worcester v. Georgia, 31 U.S. (6 Pet.) 515 (1832), was a case in which the United States Supreme Court vacated the conviction of Samuel Worcester and held that the Georgia criminal statute that prohibited non-Native Americans from being present on Native American lands without a license from the state was unconstitutional.
The opinion is most famous for its dicta, which lay out the relationship between tribes and the state and federal governments, building the foundations of the doctrine of tribal sovereignty in the United States.