We will make them so they don't mind working for us. It would be cruel to make them "free". Like domestic dogs. They will be our partners in life and not autonomous creatures. I don't see any a priori reason that being smart would require resenting servitude.
As a thought experiment, consider if we developed a drug that makes humans enjoy slavery. Would slavery then be morally acceptable, provided that drug was furnished to the enslaved humans?
It's not directly relevant. If we don't build unhappy robots there will not be any unhappy robots and no potential for any extant robot to be unhappy.
Not two classes (with or without pill), nor a history of previously unhappy robots (pre-pill), and not even potentially unhappy robots (pills run out). Only happy, working robots.