No one has yet said what the ATC unit should have done instead of giving a squawk code.
I am pretty sure that most ATC have enough of an appreciation to know that workload is a problem in single pilot aviation in an emergency VFR into IMC. They may not appreciate just how unstable an unstabilised helicopter is. However, what should they do different from giving a radar service?