A man accused of sexually assaulting a woman aboard a flight into Australia has been banned from leaving the country, a court has been told.