Polish ruling party prevails in standoff