All this is to say that Congress probably needs to meet strict scrutiny in order to prohibit the free communication of software source code. However, Congress does have a clear authority to regulate (nominally interstate) commerce. Prohibitions on the sale of software or devices with certain functionality might be kosher, but as I understand it, prohibitions on the distribution of software source code would face a much higher legal bar.
The compelled inclusion of backdoors in code you publish is unlikely to be Constitutional. Even if it did somehow become effective law, that would simply drive FLOSS developers underground. And like you say, code can be audited, projects can be forked, and the existing body of FLOSS software won't disappear overnight.
(IANAL)