Polish ruling coalition junior partner votes to stay in government