With an electric ensemble and a gripping plot, director Ritesh Shah turns a routine police investigation into a breathless arena of institutional warfare