Musk is convincing Tesla investors to back his pay. Now he must persuade a judge