machiavellian
You think you won the case, but you still lost money, and you're probably going to be in trouble again.
He got out of jail, but he still had to pay $2,000 in fees.
She beat the case, but the fines came out of her paycheck.
He got the charges dropped, but now he has to pay the court costs.