A federal judge allowed key parts of a lawsuit accusing Musk of wielding significant government power without Senate confirmation to move forward.