North Dakota agencies work to whittle budgets