Cheap autonomous weapons are overturning the economics of combat — and teaching the U.S. important lessons.