A bill in the state Legislature aims to solve some of these problems, but its fate remains uncertain.