German court allows Tesla to partially clear forest for new factory