A Labour peer who was sending texts before crashing into another car and killing a man has been jailed for 12 weeks.