The electric carmaker’s warning about tariffs comes despite its boss's key position in the Trump administration.