Justices find revocation of pay was inappropriate and left electric car chief uncompensated for his work