Budget-cut layoffs deal a blow to investigations of gun-related crimes