The suspects were allegedly fueled by a racist extremist ideology and aimed to “completely destroy” the city, prosecutors said.