Parliament backs legislation to tighten executive control after series of moves targeting anti-graft campaigners