The Trump administration is using its legal muscle to aid college students who say their free-speech rights have been violated on campus, diving into a politically charged battle over whether school discipline and safety policies are hindering expression.

Under Attorney General Jeff Sessions, who has decried colleges for becoming an “echo chamber of political correctness,” the Justice Department has been inserting itself into lawsuits on behalf of students who say their views are silenced when administrators restrict where...