Government acted unlawfully by restricting boycotts of Israel, High Court rules