It is hoped the legislation could ‘save thousands of lives and protect the NHS’, according to ministers.