Wales withstood a furious second-half fightback from Australia to seize control of Pool D at the Rugby World Cup with a 29-25 victory on Sunday.