The course of legislation in Virginia and Texas suggests a way forward in regulating AI without stifling innovation.