It’ll never survive the Federal courts.
Not that I support this, but I don’t see why you would think the courts would strike this down anymore than they’ve struck down laws about needing to be 21 to drink, to purchase guns in blue states and now buy tobacco products (which somehow needed a federal law.)