If one can sue gun manufacturers for the wrongdoing of criminals, the Fed gov can be sued as well. Afterall, the gun manufacturers are licensed
by the gov. to produce and distribute their products

Before the law was passed protecting the manufacturers, gun companies were sued many times for negligence due to criminal misuse. Not once did the plaintiffs prevail in court which prompted the Congress to pass the protection legislation.