It's the right move. If they didn't do it, every regional bank, especially those that primarily deal with businesses (which are likely to have more than $250K in deposits), would be at risk, since the expectation is that your "money is safe in the bank" is what allows the banking system as it is to exist.
None of the other regional banks had the investment risk profile or the depositor distribution (number of individual investors, SMBs, startups) of SVB.
The fact is that if depositors hadn't run on SVB it also would have been ok.