They were never stopped from that.
They were stopped for abusing their monopoly (e.g. threatening OEM PC vendors that unless they bundled this or that, they wont get Windows for a special price, etc).
And that when they had a monopoly (e.g. close to 98% of the desktop AND business market) -- which in itself is not illegal.