Massachusetts has seen a spike in illegal migrants arrested for sex offenses over the last several months as the state and city of Boston have pledged to resist plans for mass deportations.