TOKYO - A Japanese court on Wednesday ordered the Tokyo metropolitan government and the state to compensate the president of a Yokohama-based company and others for an unlawful investigation into alleged illegal export of items capable of producing biological weapons.