Three-part BBC documentary pinpoints the political misjudgments that paved the way for the horrors of the last two years