London Northwestern Railway and West Midlands Railway are set to move into public ownership from Sunday.