The impact of galactic feedback on the circumgalactic medium