Today while shifting he came and said we can't vacate without settlement and we have to pay the rent ( less than advance amount). He showed us the court order of 20th july that we can not leave.
A court order restricting you from leaving the tenanted premises without any information to you is a myth or may be a document created by him.
Have you verified the veracity of the papers produced by them
Do you have the receipt for the advance paid by you.
Have you verified that if he is owner of the property
He may be a son in law, but whether the property is lying on his name or not?
You can consult a local lawyer on further issues.