The ruling comes amid major shifts in the national firearm legal landscape following a landmark U.S. Supreme Court decision that expanded gun rights in 2022.