Study finds the economy would benefit from legalizing undocumented immigrants