Law student wins civil liberties case