Law firm plans appeal over early prison release ruling