You don't need to pass the tax on to those effected for it to work. As long as people pay something like the costs they impose, they'll only do it when it's worth that cost. After that, it doesn't matter if the money goes to those effected, or the local schools, or road maintenance, or whatever.
I agree that not subsidizing sugar production would be a much better step to take here.