(a) A district may not impose a fee or other charge on a railroad unless the railroad agrees to the fee or other charge.
(b) This section does not prohibit a railroad from voluntarily contributing to the cost of rail facilities or prohibit the district from charging for the use of a rail facility by a railroad or other person.