The court ruled that the Justice Department may have overstepped by charging some defendants with obstructing an official proceeding for their actions at the capitol on Jan. 6.