Cyberattacks on public entities across the U.S. — from police stations to school districts and courts — are causing wide-ranging issues for residents and public employees.