A federal judge said a patent infringement case involving Alien Technology Corp. will be heard in North Dakota, a ruling which favors a company with multimillion dollar ties to Fargo and the state.