FDA just approved the first drug to prevent migraines. Here’s the story of its discovery—and its limitations