The right to repair is one of those things that shouldn’t be controversial but somehow is.
I don't see much recourse, other than substantial and continued boycotts for all companies pushing this garbage.
I am not buying mobile phones anymore, since my last one broke due to overheating, and in spite of the warranty terms not forbidding custom ROMs they did not honor it.