Suggest you meet the person who you gave the check and apologize for your mistake. Take the amount due to him in cash and hand it to him taking a receipt for the payment made and asking him to withdraw the case against you and let you have your checks back. From your post, I get the feeling you did not try to be fair earlier when you issued the checks. It is now that the matter has landed in court that you are worried.
Suggest you meet the person who you gave the check and apologize for your mistake. Take the amount due to him in cash and hand it to him taking a receipt for the payment made and asking him to withdraw the case against you and let you have your checks back. From your post, I get the feeling you did not try to be fair earlier when you issued the checks. It is now that the matter has landed in court that you are worried.