conflict between and a friend and employer

That should be a lesson to your friend.
If he’s your friend he shouldn’t put you in that position…couple thousand dollars vs your career/job relationship.
You also shouldn’t have offered to be there for him if he took it to court.
Explain it to your friend an hopefully he understands.