A Wigan borough firm has stepped in with a rescue deal for a family-run bakery which closed down after 120 years.