Bankrupt Walter Energy Gets Approval from Judge to End Labor Pacts