Judge approves sale of bankrupt coal mine