Homicides and assaults have declined in many cities, but programs credited with helping keep the peace are losing federal support.