Unfortunately, the military is run by MBAs now. There's no excess funding available for emergencies. Every penny is allocated, and it's still not enough. I was on a smaller amphib class ship, we routinely ran out of budget for replacement parts. Every quarter was an exercise in prioritizing what was going to be fixed and what was going to not get fixed because we simply didn't have the budget for maintenance.
Another concern is the crew. You've now got 200 or so sailors with nothing to do. Are they supposed to just mill about and wait for the ship to be repaired for a couple years? The crew will need to be rotated to other assignments. Now, you have a ship with no crew, it's going to have to go basically through the entire commissioning process again, sea trials, etc.
It's all a logistical nightmare.
It'll be an interesting decision.