British police have declared a deadly car and stabbing attack on a synagogue in England's north - a terrorist incident.