CSGO/CS2 (and to some extent TF2 before it) makes it fully possible to host your own, dedicated server, due to its heritage from the 90s-era HL1 mod. At the same time, there is complex matchmaking and ranking support, existing completely in parallel.
I don't think anyone expects to have the entire matchmaking and competitive ranking infrastructure available to host. Bare essentials for hosting a server + ability of players to join should not be terribly hard to provide, especially if companies know before hand that this will be required, and can thus design server infrastructure accordingly.
As for this being done via legislation / court precedence, I see no other option. I don't see how these basic tools are technically hard to achieve for the vast majority of games, and I don't see any world where companies themselves would consider providing this.