Democrats have accused the Tesla CEO of influencing the government-funding bill to his own benefit.