"national security" is mentioned literally right at the beginning of the document that mandates the GFW.
> Article 3: The computer management and supervision organization of the Ministry of Public Security is responsible for the security, protection and management of computer information networks and the Internet. The Computer Management and Supervision organization of the Ministry of Public Security should protect the public security of computer information networks and the Internet as well as protect the legal rights of Internet service providing units and individuals as well as the public interest.
> Article 4: No unit or individual may use the Internet to harm national security, disclose state secrets, harm the interests of the State, of society or of a group, the legal rights of citizens, or to take part in criminal activities. [...]
And neither the US's nor China's national security claims are unjustified. Election interference, propaganda, and espionage are very real and legitimate concerns that all major world powers have regarding their communication infrastructure.
Trump might talk a big game to his constituents about the outsourcing of jobs -- but his economic agenda has absolutely nothing to do with the national security concerns voiced by US public servants.