They are sworn LEO's on [permanent] Amtrak detail. There are many similar agencies around the country-- usually in major cities in conjunction with mass transit.
IIRC, they are only allowed on the railroad right-of-way, ie tracks and switch yards, etc.
Either way, another disgusting, un-American, think of 9/11 hindrance of civil rights. Sad.