The University of North Carolina at Chapel Hill defended itself against allegations that its undergraduate admissions process violates Supreme Court precedents by giving too much weight to applicants’ race and failing to thoroughly implement other approaches to student-body diversity, according to court documents filed by both sides on Friday.

The filings are part of a lawsuit brought against the public university in 2014 by Students for Fair Admissions, the same nonprofit that is suing Harvard University for alleged discrimination....