Japanese aquariums have narrowly avoided being thrown out of the global industry body by agreeing to stop buying dolphins caught in the Taiji hunt.