The interstate highway system was considered to be allowed under the power to legislate for national defense. AI development doesn't seem to be less relevant to defense than roads.
That system depends on pulling funding for roads if they don’t follow the rules. Technically any state can opt out if they don’t receive any highway funding. Given the government isn’t giving large AI funding to states, they can’t do the same here.