An action is morally justified to the extent that it maximizes benefits and minimizes harm or costs.
Majority wins, in utilitarianism it must be the benefit and happiness of all – each person counts equally.
Jeremy Bentham an English philosopher founded utilitarianism.