Bashir appears in court as Sudan strives to move past his legacy