Delaware enacted a corporate law overhaul that aims to keep companies from following Elon Musk’s lead and leaving the state, ...