Civil rights lawyers urged the Massachusetts trial court system to better protect migrants’ due process rights amid increasing arrests by federal immigration officers inside and outside courthouses, saying Tuesday the court is “well within its right” to do so.