Tokyo has scrapped a decades-old ban on exporting lethal weapons, aiming to bolster allies as security tensions with China and North Korea intensify.