The law, which goes in effect in January, forbids the popular app from being operated in the state by anyone.