The prime minister was grilled on his commitment to reach 3 per cent for defenced funding by 2030