Sir Keir Starmer has said Britain is committed to Ukraine being on an “irreversible path” to joining Nato after the US appeared to rule out membership for the war-torn country.