A law professor spent two years testing how an AI ban, unguided AI use, and structured training affect student performance.