Gun-rights groups filed a preliminary injunction Wednesday to stop New York City from enforcing its century-old requirement that residents show “proper cause” to carry a firearm, in the wake of last week’s Supreme Court ruling that struck down the state’s gun law.