A Malaysian court has awarded former deputy prime minister Anwar Ibrahim $ 1.2 million in libel damages from an author who wrote a book accusing him of sexual misconduct and treason .