Renault has signed a deal where they sell the AvtoVAZ factory to Russian state but can buy back in the next 6 years and are in the meantime giving AvtoVAZ designs of new Renault models and assistance with getting parts for clones from more Russian-friendly countries.
McDonalds definitely feels like they're doing something similar but in a more covert way. Ate there in Moscow yesterday. They have a new logo, Big Mac is missing from menu (trademark negotiations probably?), but other than that I assure you they're re-open.
AFAIK, there were no sanctions regarding multinational corporations. McDonalds etc. were not legally obligated to pull out.