Ali campaigned to remain in the European Union in the 2016 membership referendum and in 2017 voted against the triggering of Article 50.