The UK's commitment to NATO is "unshakeable", a British minister said.