Philippine President Rodrigo Duterte has given Malaysia the licence to enter its waters in pursuit of kidnappers and militants terrorising Sabah's east coast.