Donald Trump is expected to question the AUKUS agreement but will ultimately back it when he recognises its benefit to the US, the former head of the National Security Agency says.