the answer to this question is a utilitarian system
a utilitarian system is an ethical theory that believe the best course of action is always the one that give the maximum utilities
Through this ethical system, a country might decide to invade another country that been accused of spreading terrorism because they know that they will reap long-term benefit from the invasion (by taking resources)