The highest court in Massachusetts has ruled that state court officers don't have the authority to detain people suspected of being in the U.S. illegally if that person is not facing criminal charges.