Sir Keir Starmer has admitted his decision to increase defence spending was "accelerated" by Donald Trump taking office.