Whatever gymnastics you need to do to not think that is on your own. The Supreme court is being pulled in due to a split opinion, but one federal court has already ruled it legal.
That's not breaking the law. Also "if you don't like it, don't buy it" is literally how the market works. If you don't agree with the software decisions by Apple, you can happily flock elsewhere.