Apple is not a state-owned company. They can do whatever they like, and you can choose to support them by purchasing their stock and/or their products. You can choose not to support them by purchasing neither their stock or their products.
There are several federal and state laws that define what they "can not do", and this isn't one of them. Why should a business owner(s) "not have the right" to run their business any way they see fit, so long as they do not violate the law?
Your analogy to MS doesn't hold water - MS was told not to do something by a governing authority, and they did it anyway. The governing authority stepped in and enforced their rules - nothing out of the ordinary there.