Highest constitutional authority says proposed law targets people with no intent to attack; ruling comes as country battles upsurge in anti-Semitism, allegations of systemic racism