Scotland's lawmakers are set to demand a second independence referendum when they vote Wednesday on the country's future after Brexit.