Sir Keir Starmer has paid tribute to the "sacrifice" of the UK's armed forces after US vice president JD Vance was accused of "disrespecting" British troops.