Pentagon chief still presses allies to boost defence spending to counter ‘military build-up’ by Beijing