The Albanese government has defended its response to Chinese warships patrolling the Australian coast, saying criticism from the opposition was “juvenile”.