Navigate Beyond Shortcuts: Debiased Learning through the Lens of Neural Collapse