Japan, Philippines finalize plan to fight illegal drugs