Ok so I been doing this quest 30+ times now and have about 12 settlements under brother hood control, heres the weird thing I had Danse with me the whole time and never lost the use of the work benches in the settlements.
That being said I send him away and do "Feeding the troops" quest solo and I lose control of the settlement. Everything I have read has said unless you murder everyone to complete you can't retain the settlement so is that a bug or what.. I wouldn't mind not having to rush around defending these places anymore tbh.
And to double check I went and reloaded before doing the quest grabbing Danse and didn't lose control of settlement, so there is something with that.