There is no violation of conservation of momentum because in the earth's frame the component of tension is acting in the horizontal direction.