A Chinese court has sentenced a man to death for killing 35 people last month by driving into crowd, in an attack that raised national concern about mass killings.