Global military spending nearly $1.7T amid Mideast conflicts