Generally the charge is trespassing. In my home state (Michigan) there is a charge for placing a foreign object on the tracks, but they have to show intent to cause damage or injury.