A judge gave the green light to the sale of embattled Heritage Village in Mesa, but it still faces some key deadlines.