Tennessee lawmakers soften measure that sought to keep undocumented students out of school