R. Kelly's federal sex trafficking case in Brooklyn will be heard by an anonymous jury, a judge has ruled.