MPs to debate bill in Parliament on Friday morning before historic vote which appears to be on a knife-edge