Rubberstamps in Robes: How Courts Legitimate Government Action during Crises