Tens of thousands of people across Poland have defied Covid-19 restrictions to protest a new court ruling that includes a near-total ban on abortion.