Three Kansas cities have taken residents to court over citizen petitions seeking to restrict or ban large-scale data centers.