State judges in New York, starting later this year, may be tasked with evaluating whether certain individuals’ ability to possess or buy a firearm should be temporarily suspended to protect themselves or others.

The state Legislature approved a bill Tuesday afternoon that would allow certain people to apply for what’s called an Extreme Risk Protection Order, or a temporary court decision that would block someone from owning or buying a gun.