State budget deficit narrows to $994 million