Energy Future Holdings took a big step toward getting out of bankruptcy on Thursday as it won court approval to shed about $30 billion in debt and split into two separate companies.