I believe students do this and that it matters at times, but I did not do it in law school, and I saw no sign of being ideologically punished. My favorite was writing about why 50 years of school funding lawsuits were wrong-headed. Most professors welcome interesting papers. https://x.com/nxthompson/status/2057191275359617051
Occasionally my papers would happen to be broadly progressive because that’s the shape the history took, like when I argued that the US treated Mormons like a racial outgroup until they broke the back of the early LDS church and forced assimilation, but I didn’t force it.