Legislative bodies are trying to protect their residents. Will five or six justices stand in their way?