A final decision not to prosecute a Stormont department for corporate manslaughter over the death of schoolboy Noah Donohoe has been taken, a court has heard.