Sheffield is set to see one of its major rail routes electrified for the first time, the Government has announced.