Pro-government forces seized a dam and military base, marking a turning point in the battle against a Kurdish-led militia.