Restraining order could be civil and criminal.
Civil restraining order probably is okay. Also civil restraining order has different types, emergency (issued by police), temporary (issued by court while case is pending), permanent (issued by court by a judge).
Criminal restraining order is issued after a conviction, usually domestic violence. So that is more problematic.
For your particular situation, it is best to consult an immigration lawyer due to privacy concerns. You can also go to 移民論壇問八老師。