The UK will play its "full part" in peacekeeping in Ukraine, Sir Keir Starmer has said.