Tesla’s plan to expand its German factory has faced a setback after local residents of Grünheide voted against the motion to cut down trees and make way for the larger site.