Financially, it shuffles expenses from government to someone else, usually the person being sued.
Expenses would usually be shifted to the person being sued.
The government is fine with paying all expenses necessary.