New rules would stop companies from listing if they posed a national security threat, the Treasury says.