A bankruptcy judge gave Steward Health Care System the go-ahead to wind down what remains of the company, marking the closure of one of the biggest hospital bankruptcies in decades.