A Federal judge today held three potential witnesses in contempt of court for refusing to testify here in the alien-smuggling trial of 11 church workers. The three were ordered confined to their homes for the duration of the trial.