Ultralong Dephasing Times in Solid-State Spin Ensembles via Quantum Control