If more than 50% of Red Hat shareholders vote to approve the buyout, then the deal will proceed. The minority shareholders are forced to sell their shares at the offer price, even if they didn't want to.
IBM shareholders do not need to approve the deal. Only Red Hat shareholders must agree because they're the ones being forced to sell their shares at the offer price.