In a morally justifiable way (7)
I believe the answer is:
rightly
(Other definitions for rightly that I've seen before include "With good reason" , "Honestly or justifiedly" , "Justly, honestly" , "Justly, correctly" .)