Sri Lanka Test keeper Niroshan Dickwella can play again after a three-year ban for an alleged doping violation was lifted on appeal.