The prime minister announced the increase in defence spending days before meeting US President Donald Trump in Washington.