The answer is groupthink.
According to Irving Janis, groupthink refers to the phenomenon whereby groups of people make faulty collective decisions. This can occur when pressures experienced within a group can lead to irrational decisions and erroneous moral perceptions. Group members collectively make a hasty decision without adequately thinking it through.