Notwithstanding any other provisions of law, when the State is a party, costs shall be awarded against it on the same basis as against any other party and, when awarded, must be paid out of the appropriation for the support of the agency on whose behalf the State appeared.
Ca. Civ. Proc. Code § 1028