High Court extends discharge deadline for hundreds of wards after President Catherine Connolly signs amending laws