Legislation would prohibit teenage drivers on phones