California Revenue & Taxation Code
Cal. Rev. & Tax. Code § 13106
If judgment is rendered for the plaintiff, the amount of the judgment shall first be credited on any taxes due and payable from the plaintiff. The balance of the judgment shall be refunded to the plaintiff.
Source: official text