Treasurer Jim Chalmers asked his department to war game what the outcome of the United States election would mean for Australia, officials have revealed.