The rail franchising system has been scrapped and a £3.5bn survival scheme for train firms extended.