A state House of Representatives judiciary committee on Tuesday unanimously approved a bill that would make it illegal for drivers to write or respond to text messages while driving.