Vietnam and the Philippines signed a maritime cooperation agreement on Tuesday to help better manage conflicts amid threats from China in the South China Sea.