The state's top economic development shop narrowly avoided a legislative effort to defund and dismantle it earlier this year.