Legislation introduced Wednesday would withhold federal highway funds from states that do not ban texting while driving, known to be more distracting than driving under the influence. States would lose 25 percent of the federal highway funds, until the funds were depleted, if they failed to enact the ban.