US president’s attacks have improved the fortunes of the former central banker’s Liberal party