The ruling could allow hundreds of thousands of teenage and young adult immigrants to apply for DACA, which would protect them from deportation.