If an increasing amount of money being spent on military, was channeled into humanitarian efforts, then eventually a military would hardly be needed.
The point is to make friends not enemies. Instead of dropping bombs, you could send aid to those suffering from war.
History has proven that the effort to be a world police is counterproductive. In situations where a military is attacking a population without adequate defense, the focus of aid should be in providing shelter or escape to those being attacked, making an effort not to engage the attackers. Most attackers do not have plans for world domination. Even if the situation looks unjust, we cannot make the world a better place by using punishment. We only end up having more enemies.
The motivation for war will always have a root in competition for natural resources. Humanitarian efforts will promote cooperation instead of competition.
An example of exceptional international relations policy is Cuba. They have an education system that provides them an excess of medical doctors, and they are deployed to regions in need.
However, the spirit of cooperation that likely existed in hunter-gatherer tribes of the paleolithic era may have little existence today. With civilization and cities, there was degradation of cooperation. Genetic disposition to psychopathy/antisocial personality disorders, borderline and narcissistic personality disorders, autistic spectrum disorders, and alexithymia became favorable attributes for prosperity as individuals with these traits could be clandestine amongst crowds of cooperative and trusting individuals. Women's disposition to choose prosperity or attributes other than morality in their mates facilitated the transition to corruption.
Humanity may have evolved to the point where having cooperative societies may be impossible.