Is the state not reimbursing/covering these costs related to their lawsuit? I can't imagine anyone would ever be an expert witness if they had to bear all costs either party or the judge imposes on them.
I don't know the answer to your question, but I do know that expert witnesses often charge extremely high rates for their services. Perhaps those rates are so high, in part, to compensate for all of this hassle.