The court also struck down parts of a 2022 law limiting voter-registration and absentee-ballot outreach by civic groups.