A federal judge in Boston will hear arguments Thursday afternoon on whether a legal challenge to the detention of a Tufts University student should remain in Massachusetts.