Investors are set to pour more money into defense, energy and technology stocks as the Middle East war forces governments to prioritize security and become more self reliant.