The three agreed to promote defense cooperation, just weeks after Jakarta reached a deal with Beijing to boost military ties.