German court rules mass killing of male chicks legal