Russia’s economy contracted by 2.1 percent last year, the federal statistics service said on Monday, shrinking less than expected despite its invasion of Ukraine last February and sanctions imposed by European nations and the United States.