Sir Keir Starmer said securing a lasting peace in Ukraine was "essential" to deter Vladimir Putin from future aggression.