A criminal court (as it sounds like you are referring to) does not check the passport of a witness, nor does a criminal court deport people. They could only report you to Immigration Customs and Enforcement (ICE).
However, you may want to talk to an attorney about your case because victims of certain crimes who are helpful to the prosecution (by, for example, appearing in court and testifying on the case) are eligible for immigration benefits through a U-visa.
ImmigrationHelpAttorney.com (714) 871-4529 (714) U.S. 1 - 4 LAW The statement above is general in nature and does not constitute legal advice, as not all the facts are known. You should retain an attorney to review all the facts specific to your case in order to receive advise specific to your case. The statement above does not create an attorney/client relationship. Answers on Avvo are only general answers, as specific answers would require knowledge of all the facts. As such, they are not comprehensive and may or may not apply to the question.