Court allows Tesla to clear forest for German Gigafactory