Elon Musk wins divided court victory over post that seemed to threaten Tesla employees’ stock options if they joined a union