Thousands of migrants risked their lives to enter Spain's Ceuta enclave from Morocco, leading to a humanitarian crisis. Economic pressures and a court ruling may have contributed to the surge.