A bankruptcy judge Tuesday approved the sale of three hospitals in Brevard and Indian River counties to Orlando Health.