A federal minister has downplayed Donald Trump appearing not to know what the AUKUS pact was, saying the security alliance was still secure.