A federal judge on Friday denied a request by a Black high school student in Texas for a court order that the student’s lawyers say would have allowed him to return to his high school without fear of having his previous punishment over his hairstyle resume.