Prime Minister Keir Starmer of Britain, fresh from announcing a boost to military spending, is flying to Washington for a high-stakes visit.