Prosecutors will be allowed to appeal Oscar Pistorius' acquittal for murdering his girlfriend Reeva Steenkamp after a judge granted their request.