With their deal with AMPTP, writers were trying to wrest control of a tool that could learn to draft original scripts or alter human-written scripts without permission.