The union’s fortunes turned after officials began meeting with prosecutors to demonstrate their commitment to change. The deal they reached involves six years of independent monitoring and the chance for members to get a direct say in choosing future leaders.