Poland's ruling party clings on despite blocked EU funds