Court ruling allows 650,000 undocumented immigrants who arrived in the US as children to remain and work.