The widely-expected endorsements clear the way for Moscow to keep thousands of troops in the pro-Russian territories .