Brooklyn man gets life in prison in family killings