Malaysia's imprisoned former Prime Minister Najib Razak has won an appeal to pursue his bid to serve his remaining corruption sentence under house arrest.