A federal lawsuit that has cast a shadow over the murder investigation of a local judge shot by Letcher County’s sheriff has ended in a settlement.