Netflix saved Martin Scorsese’s biggest risky film when traditional studios weren’t willing to fully back the project.