Australia survive wobble to take series