Shabana Mahmood was one of 275 MPs who voted against the legislation when it was put before the House of Commons in November.