Government regulation is critical to a healthy market economy. No economy should be totally unregulated as it will end in a monopoly. Instead you need a moderate level of regulation to prevent people from abusing positions of power. That's what this is. They're purposefully making their products impossible to repair without them, and using their market dominance to enforce it. You're welcome to disagree, but every stable economic theory relies on some regulation.
They get away with it because of their dominance in the market, that's why the gov't needs to take action. They're so huge there are no real competitors for customers to turn to.