A Haitian man charged with sexual assault in Massachusetts hopes to be deported home instead of facing a trial, an unusual case where the state’s highest court is expected to decide whether judges can use bail to keep a person in state custody out of immigration proceedings.