Joby Aviation reached an agreement to acquire Resonant Sciences, which will kick off its new defense business.