Judge approves settlement with publishers over e-books