BYD has threatened to sue the US government after the Pentagon accused the Chinese carmaker of aiding Beijing’s military.