A Russian official said the country may take retaliatory steps if Sweden and Finland join NATO, saying it “would be the worst solution for them.”