Density Functional Theory of Ionic Screening: When Do Like Charges Attract?