A federal judge on Monday ruled the University of North Carolina at Chapel Hill did not discriminate against white and Asian American applicants in a closely watched case challenging the consideration of race in undergraduate student admissions.