A judge in Massachusetts is expected to decide on Friday whether accused Pentagon leaker Jack Teixeira will remain in custody ahead of his trial for espionage.