What's the alternative? That banks make no long-term investments at all? If government bonds are too risky to make a 10-year investment on, then what is? Should we just stop investing in projects that take 10 years to get a return entirely?
"SVB CEO and President Greg Becker "personally led" the bank's $500,000 lobbying efforts to reduce financial regulations on capital requirements and stress tests, according to the Accountable.US report." [0]
https://www.salon.com/2023/03/15/rolled-back-regulations-got...
A well run bank keeps some amount of assets in lots of different durations including longer terms, just not all at once.