NATO’s collective defense is ‘sacred obligation’: US president