Malaysian ousted Deputy Prime Minister Anwar Ibrahim waves to photographers before entering the federal court