The comments came as the prime minister made a major funding announcement for Queensland.