It’s unconstitutional.
Freedom of movement under United States law is governed primarily by the Privileges and Immunities Clause of the United States Constitution which states, “The Citizens of each State shall be entitled to all Privileges and Immunities of Citizens in the several States.” As far back as the circuit court ruling in Corfield v. Coryell, 6 Fed. Cas. 546 (1823), freedom of movement has been judicially recognized as a fundamental Constitutional right. In Paul v. Virginia, 75 U.S. 168 (1869), the Court defined freedom of movement as “right of free ingress into other States, and egress from them.”