double effect
noun1
Human sciences, Philosophy, Sciences The situation where an otherwise legitimate act (for example, relieving a terminally ill patient's pain) may also cause an effect one would otherwise be obliged to avoid (e.g. sedation and a slightly shortened life).