Magnetic-Field-Resilient Superconducting Coplanar-Waveguide Resonators for Hybrid Circuit Quantum Electrodynamics Experiments