Powerful US hurricane weakens after massive damage