Tesla whistleblower wins legal battle against Elon Musk