A top US admiral has praised Australia’s preparation for nuclear-powered submarines, declaring it essential to keep China at bay.