Poland’s ruling party lawmakers give preliminary approval to two bills allowing parliament and the president to replace top judges and to a bill that would sweep out electoral commission officials, plans the opposition and the European Commission denounce as a threat to the rule of law.