The law is set to take effect in January, allowing families to directly seek a judge’s order removing weapons from a relative shown to be dangerous.