I believe the term is "sunk cost fallacy". Once someone is invested in an argument, financially, emotionally, or egotistically, or they tend to stick to their guns because they think backing down would discredit them as a person.