European rights body accuses Polish government of undermining democracy