Gallego condemned the leaking of private text messages in which he delivered a caustic assessment of his own party and mocked colleagues.