Fortunately, nobody is forcing them to do business in Russia. But doing so entails acceptance of whatever local rules there are, including rules the vast majority of people might consider wrong.
I can promise you that Facebook & Co happily hand information on any individual to US law enforcement as long as there is a court order. They don't look at the person in question and then decide based on their own sense of morality whether they "should" supply that information. They simply do it.
It's not like the judge just wakes up one day and decides "Hey, I'm going to fuck this up for everyone". There's a case for the judge to hear, and actions based on rulings. Higher courts can decide if they stand up to scrutiny (and there are often ways for effects to be stayed pending the rulings of these higher courts - see for instance Elizabeth Holmes staying out of prison again today).
Personally I think it's great that judges can make rulings that affect the operations of large multinational companies and services - remove that and we're even more in thrall to big money, with even less scope for legal remedy.
Now when law is applied flippantly, corruptly, poorly, with bias etc and the country does nothing to fix it, that's on the country to fix itself and run better, not by removing the power for the 'little guy' to have any influence at all.