Counter-terror police are investigating a spate of religiously motivated attacks on Sydney synagogues.