Never forget that emergency moral panics can even cause Scotus to go along. Look at the Japanese internment. While a touch of topic it is cautionary. If the NM Gov had determined that the crime wave was restricted primarily to one population subset and tried to pass a curfew, ban on the street measure - might have worked before the 1960's not now. However, a gun ban works for some as the 2nd Amend is not seen as a universal, accepted right. There are no absoluted, defined rights, it is all social interpretation despite bleats of 'God given', all men are created equal, etc.
While this will expire, it will be interesting to see if it renewed and folks are going to court. My dream is that Scotus sees these shenanigans and establishes a very quick path for 2nd A right unlike their glacial, procedural BS now.