He has been charged with a felony. They could keep him in jail. Based on that, I'd say that banishment is quite legal. They're saying "everywhere except DC until your trial" vs. "noplace but this cell until your trial".
It doesn't become an issue unless they deny him the right to a speedy trial.