An Arizona woman who spent more than two decades on death row in her four-year-old son’s killing saw her murder charge dismissed, bringing an end to a controversial case that relied almost entirely on the work of a detective with a long history of misconduct.