Was United allowed to remove passenger?

Many still want to know if United Airlines had the right to remove the man from the plane.