
A necessary evil
Negative Connotation
Implies something is unfavorable but tolerated for a greater good or necessary outcome. 
Colloquial Use
Commonly used in spoken and informal written English, rather than formal or academic texts. 
Contextual Understanding
Understanding the specific situation or outcome is crucial when using the phrase to avoid misinterpretation. 