Pentagon chief pledges Ukraine support in ‘challenging’ months ahead