The ban will go into effect Jan. 1, 2024, but many questions, including how it will be carried out and whether it is even legal, are swirling.