High Court Judge Mohammed Ibrahim ordered the men to be released and repatriated Tuesday after saying Kenyan courts could not deal with matters that take place outside of the country .