Judge bans tweeting from US courtroom