Former Malaysian Prime Minister Najib Razak, testifying this week in a Kuala Lumpur courtroom, said he had the right to use funds prosecutors allege were siphoned from his country’s strategic development fund to buy presents for his wife and for a former leader of Qatar.