Top US bankruptcy judge resigns amid ethics inquiry