Spanish lawmakers are expected to vote by the narrowest of margins on Tuesday to confirm Socialist leader Pedro Sanchez as head of a left-wing coalition government.