Judge demands explanation after R.I. doctor deported despite court order