Nations—and their militaries—are scrambling to control long-frozen resources and new shipping routes.