Japan's core machinery orders extended gains in July, raising hopes business growth spending may offset near-term headwinds from a global economic slowdown and a weaker yen.