Are there signs saying that the park closes at dusk? (I've only been on the Anacostia Trail once, and I can't recall the signage there, but that seems to be pretty typical of MUPs in this area.) If so, I would imagine you're probably SOL on contesting the ticket. But maybe there's some dispensation for bike commuters, especially on trails they use heavily. Good luck.