The ruling party rushed through the legislation earlier this month, ignoring warnings from the U.S. State Department, Israel and Poland’s European allies.