A federal judge in Louisiana has ruled against an anonymous police officer trying to sue the Black Lives Matter movement.