Optimal distribution of oppositely charged phases: Perfect screening and other properties