Law to ban social media while driving gains support from lawmakers