A Moscow court has ordered a computer programmer to undergo mandatory psychiatric treatment for his role in a 2021 cyberattack on Russia’s state-owned postal service.